Happy 8th birthday to the Maveryx Community! Take a walk down memory lane in our birthday blog, and don't miss out on the awesome birthday present that all Maveryx Community members get to take advantage of!
alteryx Community

# Weekly Challenge

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.

## Challenge #46: Formatting a Date from an Integer

12 - Quasar

I like to use weekly challenges to fill short gaps in trainings. This one is great for prep and blend training because we get to really explore the concept of character positions in a word and dive into the complexities of date time formatting.

Treyson Marks
Senior Analytics Engineer
8 - Asteroid

Solution attached.

8 - Asteroid
Spoiler

8 - Asteroid

Solution

10 - Fireball

7 - Meteor
Spoiler

Single formula approach, Bazinga!!!!

IF left([date],1)='0' THEN
ToDate( '19'+Substring([date],1,2) +'-'+ Substring([date],3,2)+'-'+
Substring([date],5,2)
)
ELSE
ToDate(
'20'+Substring([date],1,2) +'-'+ Substring([date],3,2)+'-'+
Substring([date],5,2)
)
ENDIF

8 - Asteroid
Spoiler

Here's my solution.

8 - Asteroid

Solved

8 - Asteroid

Formula, DatetimeParse

7 - Meteor

Solved