ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

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

How to convert the Date "Jan 21,2022" to MM/DD/YYYY?

garvit1495
7 - Meteor

Is there any predefined formula to covert the above date format to MM/DD/YYYY

4 REPLIES 4
ShankerV
17 - Castor

Hi @garvit1495 

 

This formula will help

 

datetimeformat(datetimeparse([Field1],"%b %d,%Y"),"%m/%d/%Y")

 

ShankerV_0-1676369231688.png

 

binu_acs
21 - Polaris

 

DateTimeFormat(DateTimeParse([Date],'%b %d,%Y'),'%m/%d/%Y')

@garvit1495 One way of doing this

binuacs_0-1676369203186.png

 

ShankerV
17 - Castor

Hi @garvit1495 

 

Important note: You will not be able to save the output in the Date datatype.

Date datatype will accept only ISO dateformat which is YYYY/MM/DD

 

Hence the output is saved in the String datatype.

 

Hope this helps!!!!

 

Please let us know if you have more questions.

 

Many thanks

Shanker V

willemb
7 - Meteor

This will do it: 

 

datetimeformat(DateTimeParse([Field1],'%b %d, %Y'),'%m/%d/%Y')

 

willemb_0-1676369627810.pngwillemb_1-1676369645165.png

 

More detail on the formats here: https://help.alteryx.com/20223/designer/datetime-functions

 

 

 

Labels
Top Solution Authors