DateTime.IsDaylightSavingsTime

From Xojo Documentation

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.Value = If(d.IsDaylightSavingsTime, "Yes", "No")