ConvertTimezone
The ConvertTimezone function converts datetime values to the specified time zone.
Syntax
Function arguments:
Notes
- The timezone and from_timezone arguments support a column of IANA time zones as text to perform dynamic time zone conversion.
- ConvertTimezone shifts the input datetime by the offset difference between the
from_timezoneandtimezone. Because all date values in Sigma are represented in the organization account time zone, the result is not necessarily being displayed in the timezone specified in thetimezoneargument.
Examples
Interprets values in the Date column as datetime values in the organization account time zone, then converts them to the equivalent datetime values in America/Los_Angeles (Pacific) time.
Interprets 2014-07-18 10:58:00 in America/New_York (Eastern) time and converts it to 2014-07-18 07:58:00, the corresponding time in the America/Los_Angeles (Pacific) time zone.
Converts the text “2025-01-01 00:00:00” in the [Date] column to a date, then converts it from the time zone specified in [From time zone] to the time zone specified in [Time zone].


