How to convert string to date format in Tableau

百般思念 提交于 2019-12-12 18:36:33

问题


I want to parse the following string

Wed Nov 18 20:22:45 +0000 2015

to date and time format in Tableau. Any idea how to use calculated fields? Tableau using the calculated field and DATEPARSE function?

Thanks


回答1:


Try this:

Dateparse('EEE MMM dd hh:mm:ss Z yyyy', [YourString])

refer to http://userguide.icu-project.org/formatparse/datetime for a full list of parameters to specify your date.



来源:https://stackoverflow.com/questions/33791689/how-to-convert-string-to-date-format-in-tableau

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!