我想把这个时间戳23.05.2022 08:57:15 UTC转换为2022-05-23 08:57:15 UTC
使用时间戳是我的弱点,所以我需要帮助。
谢谢
使用格式字符串,可以解析和格式化时间戳数据。考虑下面的查询
- https://cloud.google.com/bigquery/docs/reference/standard-sql/format-elements
SELECT FORMAT_TIMESTAMP('%F %T %Z', PARSE_TIMESTAMP('%d.%m.%Y %T %Z', '23.05.2022 08:57:15 UTC'));
-- output : 2022-05-23 08:57:15 UTC