How to convert string to date format in Tableau

11,558

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.

Share:
11,558
user2335132
Author by

user2335132

Updated on June 28, 2022

Comments

  • user2335132
    user2335132 almost 2 years

    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

  • user2335132
    user2335132 over 8 years
    Excellent, Alexander!! it worked perfectly. Great help,Thanks
  • James
    James about 5 years
    Doesn't work for me ("Unknown function Dateparse called") - is there something I should do to make Dateparse available?
  • Alexander
    Alexander about 5 years
    It depends on the datasource you use. Some of them do not support date parse. You would need to create an extract to make use of it.