[BigQuery] Convert a date-time string to a TIMESTAMP

Created on November 30, 2026

You can pass a date-time string and a time zone to the GoogleSQL TIMESTAMP function. The time zone tells BigQuery how to interpret the local time in the string.

SELECT TIMESTAMP('2021-11-01 00:00:00', 'Asia/Tokyo') AS event_time;

Midnight on November 1 in Tokyo represents this instant in UTC:

2021-10-31 15:00:00 UTC

If the string already includes a time zone, pass the string by itself.

Reference

BigQuery