DSTendDate Property

Top  Previous  Next

Gets or sets the date Daylight Savings Time ends.

Syntax

System.Clock.DSTendDate

Property Value

An integer that is a date/time value.

Remarks

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

 

For example, if DST ends on the first Sunday in November at 2:00 AM, then the DSTendDate property is set to the value for November 1 at 2:00 AM, and the DSTendDay 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.

Examples

// Set DST to end on the first Sunday in November at 2AM

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

// November = 10. We can skip minutes and seconds.

System.Clock.DSTendDate = DateTime.makeDate(2015, 10, 1, 2);

// Day of week is based on Sunday = 0

System.Clock.DSTendDay = 0;

See Also

DSTendDay Property, DateTime object