Community Spring Cleaning week is here! Join your fellow Maveryx in digging through your old posts and marking comments on them as solved. Learn more here!

Weekly Challenges

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
13 - Pulsar
13 - Pulsar

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
11 - Bolide

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