Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

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

HELP NEEDED: Date Format Change

yuchanliu88
5 - Atom

I have a date column formatted as "mm/dd/yyyy", such as "8/3/2021". I need it to be in the TRUE "mm/dd/yyyy" format, such as "08/03/2021". In addition, there are some null records with no value at all. I would like to keep it blank. Can anyone help me to resolve this issue? Thank you very much for your help. 

4 REPLIES 4
KarolinaRoza
11 - Bolide

hi @yuchanliu88 

 

Once you convert "8/3/2021" to Alteryx data type format, you can apply Formula tool to change to "mm/dd/yyyy" by:

 

DateTimeFormat([DateTime_Out],"%m/%d/%Y")

 

 

KarolinaRoza_0-1629843037345.png

 

what is more, null values will stay null as well.

 

Karolina

 

Jotigautam
10 - Fireball

Not sure if by blank you mean empty or null cell so here is a way to do that if need to keep empty, otherwise remove if statement..

Jotigautam_0-1629879421561.png

 

yuchanliu88
5 - Atom

Hi Karolina,

 

Thank you so much for your time and help. It worked!

 

Have a nice one.

 

Yuchan

yuchanliu88
5 - Atom

Thank you very much for your help! Very helpful:)

 

Yuchan

Labels
Top Solution Authors