In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. Learn more 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