DSTstartDate Property

Top  Previous  Next

Gets or sets the date Daylight Savings Time starts.



Property Value

An integer that is a date/time value.


This property is the first date in the year on which Daylight Savings Time (DST) could start. The DSTstartDay property specifies the day of the week. DST will start on the first specified day of the week on or after the specified date.


For example, if DST starts on the second Sunday in March at 2:00 AM, then the DSTstartDate property is set to the value for March 8 at 2:00 AM, and the DSTstartDay property is set to the value for Sunday.


The year of the date/time value is ignored when setting this property. When getting this property, the current year is used.


This property is retained in permanent (non-volatile) memory.


// Set DST to start on the 2nd Sunday in March at 2AM

// Note that months are based on January = 0, so

// March = 2. We can skip minutes and seconds.

System.Clock.DSTstartDate = DateTime.makeDate(2015, 2, 8, 2);

// Day of week is based on Sunday = 0

System.Clock.DSTstartDay = 0;

See Also

DSTstartDay Property, DateTime object