Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.

Changing the Date Format

brian_mcdonough
6 - Meteoroid

Hi - The date from my input is "2023-01-01" and I need this to be 1/1/2023. It's coming in as a date type. When I use the DateTime tool to convert it to a MM/dd/yyyy (string), nothing changes. How can I convert it to 1/1/2023 with a formula tool or why is it not being changed with the DateTime too? Thank you

4 REPLIES 4
BS_THE_ANALYST
15 - Aurora
15 - Aurora

Seemed to work for me! Cross reference mine with yours. See attached 

BS_THE_ANALYST_0-1673971733659.png

 

All the best,
BS

LinkedIN

Bulien
BS_THE_ANALYST
15 - Aurora
15 - Aurora

Check the metadata aswell (see attached). Just to definitely check that it's in Alteryx as a Date datatype

BS_THE_ANALYST_1-1673971817872.png

 

All the best,
BS

LinkedIN

Bulien
Luke_C
17 - Castor
17 - Castor

Hi @brian_mcdonough 

 

Here's an example of both:

Luke_C_0-1673971922889.png

 

 

Christina_H
14 - Magnetar

The DateTime tool won't change the existing field from being a date field, it creates a new field (DateTime_Out by default) containing the formatted date.  This can be easy to miss in a large data set, have you checked all the columns?

Christina_H_0-1673971866742.png

Alternatively the formula you need is DateTimeFormat([Date],"%m/%d/%Y"), but this will also need to be in a new field as you're changing the data type.

Labels
Top Solution Authors