AT TIME ZONE

circle-info

Important Notice: Migration of Documentation Website

Please be advised that our documentation website is currently undergoing a migration to a new platform. To ensure you have access to the most up-to-date information, we kindly request that you visit our new documentation website located at:

Official Snowflake Snowconvert Documentationarrow-up-right

For any immediate assistance or if you encounter any issues, please contact our support team at [email protected]envelope.

Thank you for your understanding.

chevron-rightApplies tohashtag

Description

Converts an inputdate to the corresponding datetimeoffset value in the target time zone. (AT TIME ZONE in Transact-SQLarrow-up-right).

Sample Source Pattern

Syntax

inputdate AT TIME ZONE timezone

Examples

Result:

Code:

Result:

Known Issues

  1. Snowflake does not support all the time zones that SQL Server does. You can check the supported time zones at this linkarrow-up-right.

Result:

  1. SSC-FDM-TS0024: CURRENT_TIMESTAMP in At Time Zone statement may have a different behavior in certain cases.

  2. SSC-EWI-TS0063: Time zone not supported in Snowflake.

Last updated