Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

convert date format

topazz11
7 - Meteor

Could you help me to convert this date format? 1/1/2020-->2020-01-01

Thanks,

 

Screenshot 2022-08-1dt.jpg

6 REPLIES 6
DataNath
17 - Castor

Hey @topazz11, you can use a Formula tool with the following expression:

 

DateTimeParse([Date]), ‘%m/%d/%Y’)

topazz11
7 - Meteor

I am getting an error..

I have attahced the file.

 

DataNath
17 - Castor

Sorry @topazz11 I made a typo and left a ) in after the square bracket of [Date] - just remove that. Should be:

 

DateTimeParse([Date], ‘%m/%d/%Y’)

topazz11
7 - Meteor

I did that..still doesn't work.

any idea?

Luke_C
17 - Castor

Hi @topazz11 

 

The quotes seem to be special characters - try DateTimeParse([Date],'%m/%d/%Y')

DataNath
17 - Castor

Great spot, @Luke_C! Typed the response out from my phone - had no idea iPhone keyboard quotes would be different!

Labels