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.

CONVERTING STRING (MULTIPLE FORMAT) TO DATE

dunkindonut7777
8 - Asteroid

Hi I would like to ask if how can I convert the unusual date that has a string type of data to date format.

 

Date (String)Expected output (Date)
01-DEC-20202020-12-01
2020-03-182020-03-18
05-MAR-20182018-03-05

 

How can I convert it according to the date format? Thank

3 REPLIES 3
atcodedog05
22 - Nova
22 - Nova

Hi @dunkindonut7777 

 

Here is how you can do it.

Workflow:

atcodedog05_0-1643099204812.png

 

Hope this helps : )

 

messi007
15 - Aurora
15 - Aurora

@dunkindonut7777,

 

Please see below :

 

messi007_0-1643099599238.png

Attached the workflow,

Regards,

binu_acs
21 - Polaris

@dunkindonut7777 

 

IIF(!isNull(DateTimeParse([Date (String)],"%d-%b-%Y")), DateTimeParse([Date (String)],"%d-%b-%Y"), DateTimeParse([Date (String)],"%Y-%m-%d"))

binuacs_0-1643102300094.png

 

Labels
Top Solution Authors