问题
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