Always tought monday was the first day of the week
That’s why I’m glad in Servoy monday is the first of the week by default unlike Filemaker where sunday is the first day of the week by default and alway’s have (had) to make a workaround with the calculation you mentioned.
What the first day of the week is depends on youre locale setting (see preferences and then locale tab)
If yours are dutch/NL then Monday is first day of week, if however it is set to USA then Sunday is first day of week.
If you want to know what the first day is in your scripts you can check with the util.isMondayFirstDayOfWeek() (1.1 release)
With that value (true/false) you can write your scripts.
(Don’t make scripts that just thinks it starts on sunday or monday!
Because those scripts are made to fail!)
What the first day of the week is depends on youre locale setting (see preferences and then locale tab)
If yours are dutch/NL then Monday is first day of week, if however it is set to USA then Sunday is first day of week.
what automazione suggests isnM-4t right then. My local/settings are Dutch=NL The calculation returns still Sunday.
What is the right calculation to get the first day of the week? (dependly what my localsetting are?)