Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.
Free Trial

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
Managing Partner
DCG Analytics
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