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

Format dates to YYYY_MO_DA

Khristian_Evans
8 - Asteroid

Hi, I need help with changing the format of my date outputs. 

7 REPLIES 7
binuacs
21 - Polaris

@Khristian_Evans what is this format MO and DA?

Khristian_Evans
8 - Asteroid

Year , Month, Date 

 

2024 - 05 - 14 for today as an example

Khristian_Evans
8 - Asteroid

@binuacs the format is currently 5/14/2024 and I want to change to 2024-05-14

binuacs
21 - Polaris

@Khristian_Evans what is your input data format? Can you give a sample data?

binuacs
21 - Polaris

@Khristian_Evans you can use the DateTimeFormat function to convert a date from the ISO format to any other format

image.png

Blockprogramming
6 - Meteoroid

Use the DateTime tool. Select the incoming field option of "MM/dd/yyyy".

 

Screenshot 2024-05-14 115849.jpg

binuacs
21 - Polaris

@Khristian_Evans If your date is not ISO format (YYYY-MM-DD) then you need to use the DateTimeParse tool to change it into the Alteryx date format which is in YYYY-MM-DD

image.png

Labels
Top Solution Authors