19 Oct 18 · Ryan-Dallas ·       Add to Favorites  

Bigquery cast string to Datetime with timezone

Sample data:

2016-10-24 15:00:00

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

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

Ryan-Dallas

posted on 19 Oct 18

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

Copied