updateTimeZone updateTimeZone

Returns a new date time, with a new time zone on the same instant.

Category

Date

Function syntax

updateTimeZone(<parameters>)

Parameters

  • time zone id: string
  • dateTime

Signature and returned type

updateTimeZone(<dateTime>,<timeZone id>)

Returns a datetime.

Examples

updateTimeZone( toDateTime("2019-08-28T08:15:30.123-07:00"), "Europe/Paris"))

Returns 2019-08-28T17:15:30.123+02:00.

updateTimeZone(@{MyExpEvent.timestamp}, "Australia/Sydney")

If the value of the timestamp field is 2021-11-16T16:55:12.939318+01:00, then the function returns 2021-11-17T02:55:12.942115+11:00.

recommendation-more-help
4f4a00c1-77c9-4eee-84df-bbe6206c3ab9