Weekly Challenge

Solve the challenge, share your solution and summit the ranks of our Community!
IDEAS WANTED

We're actively looking for ideas on how to improve Weekly Challenges and would love to hear what you think!

Submit Feedback
We've recently made an accessibility improvement to the community and therefore posts without any content are no longer allowed. Please use the spoiler feature or add a short message in the message body in order to submit your weekly challenge.

Challenge #4: Date Parsing

Highlighted
8 - Asteroid

That was hard - I managed to use three separate regex tools to match all the dates, then joined them based on most specific match to least specific

Highlighted
8 - Asteroid
Spoiler
Challenge#4.png
Highlighted
Alteryx Certified Partner

Shout out to @markp201 for his RegEx solution for which I had to learn RegEx first in order to understand the meaning of it

 

Spoiler
4.png
7 - Meteor

Solution Attached. Regex makes this a lot easier!

 

Spoiler
Spoiler

Challenge_4_start_file_AR.yxmd.png

 

Highlighted
Alteryx
Alteryx
Spoiler
image.png

Fun!  With only four date formats, it seemed simpler to just filter and parse each format separately than to convert them.

Highlighted
8 - Asteroid

Learned a lot about regular expressions:

Spoiler
(0?[1-9]|[12][0-9]|3[01]|JAN|FEB|MAR|MAY|APR|JUL|JUN|AUG|OCT|SEP|NOV|DEC)

[- /.]

(JAN|FEB|MAR|MAY|APR|JUL|JUN|AUG|OCT|SEP|NOV|DEC|JULY|0?[1-9]|[12][0-9]|3[01])

[- /.,]

(18\d\d| ?19\d\d|20\d\d|\d\d)
Highlighted
8 - Asteroid

Here's my solution!

Spoiler
Capture.JPG
Highlighted
6 - Meteoroid

Hi All - here's my solution. It somewhat lacks the same level of detail as the solution but works quite nicely. This one I loved doing as very typical of things I've had to clean up at work. 

Highlighted
7 - Meteor

Used Regular Expression tool and DateTime Tool to extract dates and convert from strings.

Highlighted
8 - Asteroid

My version.