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

Changing Date Formula Without Parse Tool

nwatzlaf
8 - Asteroid

Hi there,

 

I have this formula and it outputs the correct date, but I want it in a different format. Is there a way to change the formula or do I have to use the DateTime tool?

 

 

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

 

Output = 11/19/2019

Desired output = 11-19-2019

 

Thank you for your time,

Natalia

2 REPLIES 2
fmvizcaino
17 - Castor
17 - Castor

Hi @nwatzlaf ,

 

You were almost right! 🙂

 

DateTimeFormat(DateTimeParse([DISTRO_CREATE_DATE],"%Y/%m/%d"),"%m-%d-%Y")

 

The only thing missing was the dashes in your output format.

Best,

Fernando V.

nwatzlaf
8 - Asteroid

@fmvizcaino  Thanks so much! Easy fix 🙂

Labels
Top Solution Authors