I have TIMESTAMP NTZ field in Snowflake. I need to output the value of the column in the following format:
YYYY-MM-DDTHH:MMZ
I tried the following but it didn't work:
SELECT to_timestamp_tz(MAX("UPDATED_AT"), 'yyyy-mm-ddTHH:MMZ') FROM HISTORY;
I have TIMESTAMP NTZ field in Snowflake. I need to output the value of the column in the following format:
YYYY-MM-DDTHH:MMZ
I tried the following but it didn't work:
SELECT to_timestamp_tz(MAX("UPDATED_AT"), 'yyyy-mm-ddTHH:MMZ') FROM HISTORY;
Copyright © 2021 Jogjafile Inc.
If you have a
timestamp_ntz
field that you want to represent in a specific way then you can use the to_char function like this (assuming you want 24hr time):Complete example:
The above produces: