The FirstDayOfWeek property returns or sets the day on which the week is set to start. Read/write.
objContRend.FirstDayOfWeek
Long
The FirstDayOfWeek property is used when a CalendarView is applied to the container object's CurrentView property. FirstDayOfWeek can have exactly one of the following values:
FirstDayOfWeek setting | Meaning |
---|---|
1 | The calendar week begins on Monday. |
2 | The calendar week begins on Tuesday. |
3 | The calendar week begins on Wednesday. |
4 | The calendar week begins on Thursday. |
5 | The calendar week begins on Friday. |
6 | The calendar week begins on Saturday. |
7 | The calendar week begins on Sunday. |
The FirstDayOfWeek property can be set from the Session object's "FirstDayOfWeek" option. It defaults to 7 (Sunday) if not set. The session's options are set by its SetOption method and retrieved with its GetOption method.
The session's "FirstDayOfWeek" option and the container renderer's FirstDayOfWeek property are not automatically kept in synchronization. Changing one does not cause the other to be changed. Your application is responsible for setting each of them as appropriate.
Note that the FirstDayOfWeek property and the "FirstDayOfWeek" option are compatible with each other but not with the DayOfWeekMask property of the RecurrencePattern object, which uses the mask constants CdoSunday through CdoSaturday.