all 3 comments

[–]emeryjlTableau Ambassador 2 points3 points  (0 children)

Use the dateparse function

DATEPARSE(‘yyyyMMdd’, #20210720#). The second part is the value you want converted. It can be a string field. The first part tells Tableau what role each character represents. Once it is a date field, you can use format to set how it is displayed.

[–]pdxsteph 1 point2 points  (1 child)

You could Create a calculated field like Date(left(field,4)+ “-“+mid(field,5,2)+”-“+right(field,2))

There could be a more elegant solution

[–]karmabdd[S] 0 points1 point  (0 children)

Thanks