ChangeTimeZone¶
Returns a new DateTimeOffset
with the specified time zone offset.
1 |
|
Parameters¶
DateTimeOffset dateTime
The base DateTimeOffset
value.
string timeZone
The new time zone offset in "hh:mm" format.
Returns¶
A new DateTimeOffset
with the specified time zone offset.
Remarks¶
The result is:¶
1 2 3 |
|
Example¶
1 2 |
|