Bigquery cast string to Datetime with timezone

Sample data:

\n\n
2016-10-24 15:00:00
\n\n

To Cast the string to DateTime with timezone, use the below syntax:

\n\n
DATETIME(CAST( MURDER_DATE AS TIMESTAMP), "Australia/Sydney"))\n

Ryan-Dallas

posted on

Enjoy great content like this and a lot more !

Signup for a free account to write a post / comment / upvote posts. Its simple and takes less than 5 seconds