- Local time
- Tomorrow, 01:54
- Joined
- Jan 20, 2009
- Messages
- 12,895
As documented, WeekDay() uses a default of Sunday for the first day of the week.
The documentation for WeekDayName() also claims that its default for the first day of the week is Sunday. This is incorrect. In fact WeekDayName() uses the System Regional Setting for First Day of the Week.
This anomaly is not evident in regions where Sunday is the First Day of Week.
However the First Day of Week in the ISO Standard is Monday. Consequently there is an anomaly between Weekday() and WeekDayName() in regions such as Australia where ISO is used.
We must either change the Regional First Day of Week (potentially causing other issues) or use the First Day of Week argument in the WeekDayName function to force it back to Sunday so that it is consistent with WeekDay().
The documentation for WeekDayName() also claims that its default for the first day of the week is Sunday. This is incorrect. In fact WeekDayName() uses the System Regional Setting for First Day of the Week.
This anomaly is not evident in regions where Sunday is the First Day of Week.
However the First Day of Week in the ISO Standard is Monday. Consequently there is an anomaly between Weekday() and WeekDayName() in regions such as Australia where ISO is used.
We must either change the Regional First Day of Week (potentially causing other issues) or use the First Day of Week argument in the WeekDayName function to force it back to Sunday so that it is consistent with WeekDay().