Calendar.ChangeTimeZoneAsync
Overview¶
Promise<DateTimeOffset> Calendar.ChangeTimeZoneAsync ( dateTime, timeZone, [callback] )
Arguments¶
DateTimeOffset dateTime Specifies the base date time value.
String timeZone Specifies the new time zone info for date value in "hh:mm" format.
Function callback Callback to execute. Optional.
Remarks¶
Examples¶
$Xml.SetValue('CurrentDate', new DateTimeOffset()); $Calendar.ChangeTimeZoneAsync(new DateTimeOffset(), '02:00').then(function(newDate) { $Xml.SetValue('ChangedDate', newDate); });
<CurrentDate>2017-01-25T15:42:47.5389149Z</CurrentDate> <ChangedDate>2017-01-25T17:42:47.5389149+02:00</ChangedDate>