In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

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

normalizing dates regex replace?

pvara
8 - Asteroid

I have a mixed bag of dates I am trying format. The dates are formatted as follows:

06302020

20200630

 

My goal would be to use a formula tool to reformat those dates as follows

2020-06-30

2020-06-30

 

Any suggestions and thank you in advanced.

3 REPLIES 3
fmvizcaino
17 - Castor
17 - Castor

Hi @pvara ,

 

I would suggest you to use datetimeparse function 2 times and then check which parse functions returned a non null date.

fmvizcaino_0-1591885052657.png

 

 

 

Best,

Fernando Vizcaino 

pvara
8 - Asteroid

Thank you that can work. very simple just what i needed without getting too fancy 🙂

JosephSerpis
17 - Castor
17 - Castor

Hi @pvara I mocked up a workflow let me know what you think?

 

Dates_11062020.JPG

Labels
Top Solution Authors