19 October 2018 · Ryan-Dallas ·       Add to Favorites   Report

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 October 2018

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

Copied