ChangeTimeZone¶
Returns a new DateTimeOffset with the specified time zone offset.
myCalendar.ChangeTimeZone(dateTime: DateTimeOffset, timeZone: string):DateTimeOffset (DateTimeOffset)
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 | |