如何在 Tableau 中将字符串转换为日期格式
问题描述:
我想解析以下字符串
2015 年 11 月 18 日星期三 20:22:45 +0000
Wed Nov 18 20:22:45 +0000 2015
到 Tableau 中的日期和时间格式.知道如何使用计算字段吗?Tableau 使用计算字段和 DATEPARSE 函数?
to date and time format in Tableau. Any idea how to use calculated fields? Tableau using the calculated field and DATEPARSE function?
谢谢
答
试试这个:
Dateparse('EEE MMM dd hh:mm:ss Z yyyy', [YourString])
参考http://userguide.icu-project.org/formatparse/datetime 获取用于指定日期的完整参数列表.
refer to http://userguide.icu-project.org/formatparse/datetime for a full list of parameters to specify your date.