Skip to content

GetTimeZoneAsync

Returns the time zone offset of a DateTimeOffset value asynchronously.

1
myCalendar.GetTimeZoneAsync(dateTime: DateTimeOffset):Promise<string>

Parameters

DateTimeOffset dateTime
    Specifies the base DateTimeOffset value.

Returns

A Promise that resolves to a string representing the time zone offset in "hh:mm" format.

Examples

Show the time zone of a date

1
2
3
$Calendar.GetTimeZoneAsync(DateTimeOffset.parse($Xml.Evaluate('MeetingDate'))).then(function (zone) {
    $Xml.SetValue('MeetingTimeZone', zone);
});

See Also