Forum Discussion

FrankT's avatar
FrankT
Advocate II
8 years ago
Solved

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...
  • MarcelBeug's avatar
    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.