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 conversion

EvansM
9 - Comet

Hello,

 

How do I convert  from YYMMDD to YY/MM/DD

 

190505    19/05/05

071218     07/12/18

200215     20/02/15

100205     10/02/05

 

Thanks

3 REPLIES 3
JosephSerpis
17 - Castor
17 - Castor

Hi @EvansM I mocked up a workflow that acheives your desired output. You need to perform a datatime parse of your orginal date time format into the only format Alteryx reconise as date YYYY-MM-DD then perform a datatime format formula to match your desired format which would result in a string field. The added complication was trying to perfrom a straight datetime parse of your data orginal format was, it was throwing errors hence why I build out the date into YY-MM-DD before I parse the date. This link provides more detail around date time functions in Alteryx.

Emmanuel_G
13 - Pulsar

@EvansM 

 

Find in attachement the way of doing that.

 

Let me know if there is any issue and please, do not hesitate to mark this answer as solution if it helped.

 

Bonus : I also parsed your data in correct date format in additional field. 😉

 

Emmanuel_G_0-1664308647856.png

 

binuacs
21 - Polaris

@EvansM One way of doing this

binuacs_0-1664308678259.png

 

Labels
Top Solution Authors