Community Spring Cleaning week is here! Join your fellow Maveryx in digging through your old posts and marking comments on them as solved. Learn more here!

Weekly Challenges

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

Also available in | Français | Português | Español | 日本語
IDEAS WANTED

Want to get involved? We're always looking for ideas and content for Weekly Challenges.

SUBMIT YOUR IDEA

Challenge #4: Date Parsing

MarqueeCrew
20 - Arcturus
20 - Arcturus

I thought that I was pretty clever :D

 

mark

Alteryx ACE & Top Community Contributor

Chaos reigns within. Repent, reflect and restart. Order shall return.
Please Subscribe to my youTube channel.
SeanAdams
17 - Castor
17 - Castor

done - but clearly did this the long way round

Spoiler
- split out each different format of date using Reg-Ex; and a custom date converter
- commented each section with the date format for easy maintenance

Thank you to @markp201 for the regex code - good to see the patterns like this - and to @MarqueeCrew for the super-scary-looking-inline-formula version (very impressive!)

 

MarqueeCrew
20 - Arcturus
20 - Arcturus

@SeanAdams,

 

i would be be happy to walk you through my scary code. It really is just a big OR statement to search for the different patterns. 

 

Let me me know if you're interested. 

Alteryx ACE & Top Community Contributor

Chaos reigns within. Repent, reflect and restart. Order shall return.
Please Subscribe to my youTube channel.
SeanAdams
17 - Castor
17 - Castor

Thank you @MarqueeCrew - walking through it, the OR logic makes sense - the part that I wouldn't have come to on my own steam is the way that it seems that you've replaced the outer part of the string, rather than the pattern-matched date (it seems kinda like saying "this is how you recognize an apple seed - now throw away the rest") :-).    it's not an intuitive pattern, but makes sense once you see it.

 

It would be good to make contact, even if just to extend the network of like-minded folk - not sure how to PM you on the Alteryx infra, but I've sent you a ping on LinkedIn and Google+

 

Many thanks for your kind offer @MarqueeCrew

 

Sean

NicoleJohnson
ACE Emeritus
ACE Emeritus

Solution posted. :)

 

Spoiler
WeeklyChallenge4.JPG
Laurap1228
11 - Bolide

This one was tough! I definitely used the On Demand Regex video to help me solve it.

Spoiler
challenge4.jpg
estherb47
15 - Aurora
15 - Aurora
 
DE0413
8 - Asteroid
Spoiler
I used a Regex Parse to Parse the 3 date formats into 3 new fields. Next, I used a formula tool to create a field with a consistent format of the dates, finally I used a select tool to deselect extra fields and rename the final date formatted field.

Week4SolutionPicture.png

 I don't know why my attachments are opening in html and not Alteryx.

LordNeilLord
15 - Aurora

The datetimeparse tool makes life so much easier...

 

Spoiler
Weekly Challenge 4.png
irisTZ
5 - Atom

this one is hard...