Need to get "Monday" as the start day of week in a report definition
Hi,
I need to get 1st day of a week in a column in a report definition.
I have been trying to use "The Week of" function and it gets Sunday as the start day of the week.
I have tried changing the operator locale and calendar to different locales but still I'm getting the same results.
I found out that the function alias "pxWeek" is the function behind the report definition function and noticed that it uses below query to get the first day of the week
SUBSTR(REPLACE(VARCHAR(TIMESTAMP(SUBSTR({1}, 1, 8) ||'000000') - ( DAYOFWEEK(TIMESTAMP(SUBSTR({1}, 1, 8) ||'000000'))-1 ) DAYS),'-',''), 1, 8)
I believe the minus 1 is the culprit here, but when I do any sort of change e.g remove minus 1 or add a 1 to the question it results in a SQL exception.
Has anyone come across this and have a resolution on how to get Mondays as the start day of the weeks?
***Edited by Moderator Marije to add FDBK Idea tags***