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¶
Change a date-time value to a different offset¶
1 2 3 | |
Inspect the shifted XML output¶
1 2 | |