Want to get involved? We're always looking for ideas and content for Weekly Challenges.
SUBMIT YOUR IDEAA little rusty with RegEx capture groups, ended up using a previous solution as a guide and documented how it works.
Good RegEx practice! Can't believe I actually figured them out.
(\d{1,2}\-[[:alpha:]]{3,10}\-\d{2,4})
([[:alpha:]]{3} \d{1,2},? ?\d{4})
There's also an interesting formula to figure out if the year 49 is 1949 or 2049... I treated it as 2049..
if substring(ReverseString([Date]),2,1) = '-' then
if ToNumber(ReverseString( left(ReverseString([Date]),2))) >50 then
ReverseString(
left( ReverseString([Date]),2) +'91' + Substring( ReverseString([Date]),2)
)
else
ReverseString(
left( ReverseString([Date]),2) +'02' + Substring( ReverseString([Date]),2) )
endif
else
[Date]
endif