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 #46: Formatting a Date from an Integer

Highlighted
8 - Asteroid

Thanks for the challenge! Here is my solution:

Highlighted
Alteryx Partner

Number 11

Spoiler
sumanthskumar_0-1589698241458.png

 

Highlighted
8 - Asteroid

Hi,

 

Sharing my solution.

 

Very simple but interesting challenge. 

 

Spoiler
Challenge_41_Emil_Kos.PNG
Highlighted
Alteryx Partner

here's my solution

Highlighted
8 - Asteroid

My solution attached.

 

Spoiler
Challenge_46_edavilac.PNG
Highlighted
11 - Bolide
Spoiler
 
Highlighted
7 - Meteor

  

Highlighted
8 - Asteroid

RegEx! It's your friend!

 

Spoiler
izamryan_0-1590165596397.png


For this one I used a Formula tool with a bunch of formula in series:

[Year]
IF Left([date],1) = "1" THEN 20
ELSE 19
ENDIF

[date2]
Right([date],6)

[date_result]
[Year]+[date2]

I then used a RegEx to slice out the yyyy,mm,dd:
(\d{4})(\d{2})(\d{2})

and then another Formula tool to rehypothecate (!!!) the string
[yyyy]+"-"+[mm]+"-"+[dd]

and finally a Select tool to tidy up.

 

Highlighted
7 - Meteor

DateTime tool remains a favorite of mine!

Spoiler
mulvihi11_0-1590695237890.png

 

Highlighted
8 - Asteroid