ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
Start 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

amitsrivastava
6 - Meteoroid

My solution for this challenge.

RoDO
8 - Asteroid

My solution

 

Spoiler
FORMULA:
DateTimeParse(
IF Left([date], 1) = '1'
THEN '20' ELSE '19' ENDIF
+ Right([date], 6),
'%Y%m%d')

challenge_46_RODO_Solution.png
sgrabish1
8 - Asteroid

Done!

myouree
8 - Asteroid

My solution

Hezabel
6 - Meteoroid

 

I chose to sort out the year, then deal with the format in one go.  I like the single formula route - very slick!

JamesFo
8 - Asteroid
 
Christoph_Ebersbach
8 - Asteroid

Solved

sarahjohnson
8 - Asteroid
Spoiler
sarahjohnson_0-1572290700065.png
Hitch
8 - Asteroid

Here's my attempt

apabonok
8 - Asteroid

This is my solution:

 

Evalute 1st digit and concatenate 19 or 20 (according to rule) to the rest of string. Then, parse to date.