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

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