2
votes

I have a data set with date format (which according to our IT it's an IBM format) 1110101 which means 1/1/2011, so 1160506 means 5/6/2016. I tried to convert it to date format that tableau can recognize and here's the plan:

Step 1, I create a field called "Date Converted"= Date I have + 19000000 Step 2, I use DATEPARSE to convert it to date by:

DATEPARSE("yyyymmdd",19000000+[Date I have])

But Tableau doesn't accept DATEPARSE and it says it's an unknown syntax. Anyone know's how to correctly convert IBM date format to a date that Tableau can recognize?

1
What data source are you connecting to? Some Tableau functions are not available for some data sources (DATEPARSE for SQL Server for example) - Alexander
Is your [Date I have] field a string or integer? The "+" operator does different things accordingly. If your data source does not have DateParse(), or MakeDate(), you can always create a string in MM/DD/YYYY format and use the Date() function - Alex Blakemore

1 Answers

0
votes

My date format

enter image description here

Change your format in string

enter image description here

Create custom calculation

MID([Date],6,2) + "/" + MID([Date],4,2) + "/" +MID([Date],2,2)

enter image description here

Change your data type to date

enter image description here

You date will look like this

enter image description here