Date.TimeZone

From Xojo Documentation

Read-Only Property (As TimeZone )
TimeZoneValue = aDate.TimeZone

New in 2019r2

Supported for all project types and targets.

The time zone.

Sample Code

Get the time zone:

Var d As Date = Date.Now
Var tz As TimeZone
tz = d.TimeZone

To change a date to a new time zone, for example GMT:

// myDate is an existing date
Var GMTZone As New TimeZone("GMT")
Var GMTDate As New Date(myDate.SecondsFrom1970, GMTZone)