简体   繁体   中英

STRING - DATE FORMAT BIGQUERY

error is: Invalid timestamp: '2/17/2022'

Hi guys, Someone can help me to change STING (dd-mm-yyy) to a Date fomat (yyyy-mm-dd)?

thank you for your time

Try below

select parse_date('%m/%d/%Y', '2/17/2022'), parse_date('%m-%d-%Y', '2-17-2022')    

with output

在此处输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM