Bigquery cast string to Datetime with timezone
To Cast the string to DateTime with timezone, use the below syntax:
DATETIME(CAST( MURDER_DATE AS TIMESTAMP), "Australia/Sydney"))
Read great educational content like this and a lot more !
Members get free exclusive access to content, new courses, and discounts. Signup for a free account to write a post / comment / upvote posts. Creating an account takes less than 5 seconds and you can start earning badges & points too