Let’s talk Alteryx Copilot. Join the live AMA event to connect with the Alteryx team, ask questions, and hear how others are exploring what Copilot can do. Have Copilot questions? Ask 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