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

RK13
6 - Meteoroid

Hi Team,

 

I was trying to change my date format from 3/31/2021(vstring) to 2021-03-31 with date tool. But I'm seeing below error. Could you please help me on this ?

 

Note: I've multiple date in my data, above one is just sample

 

DateTime (27) DateTime_Out: Cannot convert "1/1/2019" to a date/time with format "YYYY-%m-DD": Expected separator 'YYYY-%m-DD', got: '1/1/2019' Record #2

 

Thanks in Advance

 

 

2 REPLIES 2
Emil_Kos
17 - Castor
17 - Castor

Hi @RK13,

 

Please see the workflow attached:

 

Emil_Kos_0-1620116967554.png

 

This formula should work for you:

 

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

 

RK13
6 - Meteoroid

This worked.  Thanks 🙂

Labels
Top Solution Authors