DateTime.IsDaylightSavingsTime

From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

Read-Only Property (As Boolean )
BooleanValue = aDateTime.IsDaylightSavingsTime

New in 2019r3

Supported for all project types and targets.

Indicates whether the DateTime is in daylight savings time or not.

Sample Code

The following example displays the current hour.

Var d As DateTime = DateTime.Now
Label1.Text = If(d.IsDaylightSavingsTime, "Yes", "No")