Convert varchar with timezone to a timestamp? (snowflake)

Viewed 39

How can I convert the following varchar to a timestamp in snowflake?

2020-10-02 12:52:01 UTC

1 Answers

Try this:

SELECT try_to_timestamp_ntz ('2020-10-02 12:52:01 UTC', 'YYYY-MM-DD HH24:MI:SS UTC') FROM DUAL;

Related