Let’s talk Alteryx Copilot. Join the live AMA event to connect with the Alteryx team, ask questions, and hear how others are exploring what Copilot can do. Have Copilot questions? Ask here!
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