简体   繁体   中英

How to parse a string time '16-AUG-22 01.50.20' to datetime bigquery

How can I parse a following string timestamp to timestamp from BigQuery: "16-AUG-22 01.50.20.000000 PM" ?

Use below as an example

select parse_timestamp('%d-%b-%y %I.%M.%E*S %p', "16-AUG-22 01.50.20.000000 PM")          

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