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

Date format change

Naga
8 - Asteroid

Hi Team,

 

Please help. I need the date format to be changed from  input (excel) to output.

 

Input date format in excel file - m/d/yyyy (7/1/2019)

Output date format - CCYYMMDD (20190701)

 

Thanks

Naga

2 REPLIES 2
fmvizcaino
17 - Castor
17 - Castor

Hi @Naga ,

 

Attached is an example showing how to do it with 2 datetime tools.

Be aware that Alteryx only let yyyy-mm-dd format as a date format, everything else needs to be in string format.

 

Best,

Fernando Vizcaino

RolandSchubert
16 - Nebula
16 - Nebula

Hi @Naga ,

 

the formula 

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

should return the expected result. DateTimeParse converts the Excel-Format to a date, DateTimeFormat converts it to the format you need)

 

Best,

 

Roland

Labels
Top Solution Authors