Want to get involved? We're always looking for ideas and content for Weekly Challenges.
SUBMIT YOUR IDEADone 😉
not quite as bad when you get into it, but definitely 10x easier in python using the dateutil package
#SnakingMyWayThruChallenges
Added a join tool to check results and make sure the dates matched to the solution output.
I'm learning more RegEx and appreciate the solution. In my solution, I created all possible values for Month, Date, and Year and then created the new date.
just had a quick edit to my previous response - Python can be cleaned up further with the following Formula:
from ayx import Alteryx
import dateutil.parser as dparser
import numpy as np
df = Alteryx.read('#1')
df['datetime'] = df['Field_1'].apply(lambda row:
dparser.parse(row,fuzzy=True))
Alteryx.write(df,1)
The "apply(lambda)" allows for a row by row calculation and is quite fast.
First time using RegEx! It wasn't as scary as I thought it would be to pick up although it's very obvious I still have a lot to learn