We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Mixed date format conversion

JanaZ
7 - Meteor

Hi there

 

I have a set of mixed date formats, how can I transform it to dd/mm/yyyy?

 

from here

Date
12.11.98
2000-08-21
23/07/2013
TBA

 

to here

Date
12/11/1998
21/08/2000
23/07/2013
 
2 REPLIES 2
flying008
15 - Aurora

Hi, @JanaZ 

 

Look that:

flying008_0-1675824544745.png

 

IF Contains([Date], '.') THEN DateTimeFormat(DateTimeParse([Date],'%d.%m.%y'),'%m/%d/%Y')
ELSEIF Contains([Date], '-') THEN DateTimeFormat(DateTimeParse([Date],'%Y-%m-%d'),'%d/%m/%Y')
ELSEIF Contains([Date], '/') THEN DateTimeFormat(DateTimeParse([Date],'%d/%m/%Y'),'%d/%m/%Y') 
ELSE Null() ENDIF

 

******

If it can help you , please mark it as a solution and give a like for more share.

 

JanaZ
7 - Meteor

@flying008 

 

It's perfect, thank you so much for the solution. 

 

I am struggling with the date/time format in Alteryx.

 

Cheers, 

Jana

Labels
Top Solution Authors