Reference > TDBDateX Object > TDBDateX Object Properties > StartOfWeek Property (TDBDateX) |
StartOfWeek Property (TDBDateX)
The StartOfWeek property determines which weekday should be displayed first in the control. Calendars are usually set to either Sunday or Monday.
object.StartOfWeek= value
Read/Write at run time and design time.
Design Time |
Run Time |
1 - Sunday |
dbiSunday |
2 - Monday |
dbiMonday |
3 - Tuesday |
dbiTuesday |
4 - Wednesday |
dbiWednesday |
5 - Thursday |
dbiThursday |
6 - Friday |
dbiFriday |
7 - Saturday |
dbiSaturday |
The StartOfWeek property also determines the starting weekday for a week. Most likely either Sunday or Monday will be set. This property can influence the return values for the FirstInWeek and the LastInWeek methods.
The TDBDateX and TDBHolidayX controls are not available at design time.
When the starting week day changes, note that the calendar months need to be rearranged, and the trailing month days will change.
By default, the starting weekday will be picked up from the system.
See Also