How do I cast dd/mm/yyyy string into date in BigQuery?

Saurabh Kumar picture Saurabh Kumar · Mar 12, 2015 · Viewed 15.2k times · Source

I have 3 columns 1. dd/mm/yyyy (stored as a string) 2. app_id and #downloads of apps

I have to find unique ids of apps downloaded within a week.

Thank you

Answer

Graham Polley picture Graham Polley · Feb 8, 2017

Even shorter using standard SQL:

SELECT TIMESTAMP(PARSE_DATE('%d/%m/%Y','23/03/2015'))