ChangeTimeZoneAsync¶
Returns a new DateTimeOffset
with the specified time zone offset asynchronously.
1 |
|
Parameters¶
DateTimeOffset dateTime
Specifies the base DateTimeOffset
value.
string timeZone
Specifies the new time zone information for the date value in "hh:mm" format.
Returns¶
A Promise that resolves to a new DateTimeOffset
value with the specified time zone offset.
Remarks¶
Example¶
1 2 3 4 |
|
Result:
1 2 |
|
See Also¶
- Calendar
- Promise<DateTimeOffset>