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!

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.

SUBMIT YOUR IDEA

Challenge #46: Formatting a Date from an Integer

Treyson
12 - Quasar
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
mertshepard
8 - Asteroid

Solution attached.

hang_nguyen_kpmg
8 - Asteroid
Spoiler
hang_nguyen_kpmg_0-1679564627267.png

 

JS1989
8 - Asteroid

Solution

Hammad_Rashid
10 - Fireball

Solution.PNG

bpiscoya
7 - Meteor
Spoiler
bpiscoya_0-1680627691615.png

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

 

mdm
8 - Asteroid
Spoiler
mdm_0-1680709239894.png

 

Here's my solution.

elena_mazareanu
8 - Asteroid

Solved

PrachiD
8 - Asteroid

Formula, DatetimeParse

Jlayba
7 - Meteor

Solved