Forum Discussion
FrankT
8 years agoAdvocate II
Date.DayOfWeek - Default for argument firstDayOfWeek ???
According to the documentation the default for the argument firstDayOfWeek should be Day.Sunday! October 31st, 2010 was a Sunday but Date.DayOfWeek(#date(2010,10,31)) returns 6. Has this argumen...
- 8 years ago
The documentation is incorrect.
It is the first day of the week according to your regional settings in Windows.
You may consider always specifying the first day of the week instead of relying on the default.
Redoute
7 years agoNew Member
= Date.DayOfWeek(#date(2018, 10, 23)) = Day.Monday
TRUE
And I thought it is tuesday already :smileysad: