Reference > DSTStyle Object > DSTStyle Object Properties > StartWhichWeek Property (DSTStyle) |
StartWhichWeek Property (DSTStyle)
Sets/returns the week in month, in which the Daylight Savings Time (DST) starts.
object.StartWhichWeek= value
Read/Write at run time. Not available at design time.
Description |
Run Time |
1 - First week |
dbi1stInMonth |
2 - Second week |
dbi2ndInMonth |
3 - Third week |
dbi3rdInMonth |
4 - Fourth week |
dbi4thInMonth |
5 - Fifth week |
dbi5thInMonth |
6 - Last week (Default) |
dbiLastInMonth |
The StartWhichWeek property is used to determine the number of the starting week for the DST within a month. This property is often used with the StartWeekday property to specify the exact starting date, instead of the StartDay property.
This property takes effect only when StartDay property is set to 0.
There may be cases where depending on months, the fourth/fifth and the last week refer the same week. Also when the number of the week specified does not exist in the month, the last week will be automatically retrieved. For example, in the year 1998:
With this code the ending date will refer to February 22nd, 1998 which equals to the fourth Sunday in February, since the fifth Sunday does not exist.
See Also
EndWhichWeek Property (DSTStyle)