AT TIME ZONE
Description
Converts an inputdate to the corresponding datetimeoffset value in the target time zone. (AT TIME ZONE in Transact-SQL).
Sample Source Pattern
Syntax
inputdate AT TIME ZONE timezoneCONVERT_TIMEZONE( <source_tz> , <target_tz> , <source_timestamp_ntz> )
CONVERT_TIMEZONE( <target_tz> , <source_timestamp> )Examples
Result:
Result:
Code:
Result:
Code:
Result:
Known Issues
Snowflake does not support all the time zones that SQL Server does. You can check the supported time zones at this link.
Result:
Related EWIs
SSC-FDM-TS0024: CURRENT_TIMESTAMP in At Time Zone statement may have a different behavior in certain cases.
SSC-EWI-TS0063: Time zone not supported in Snowflake.
Last updated
