The Alteryx Community is a finalist in three 2026 CMX Awards! Help us win Customer Support Community, Most Engaged Community, and User Group Program of the Year - vote now! (it only takes about 2 minutes) before January 9.
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

KOBoyle
Bólido

Solution attached. Since a formula was required to convert the first digit, I used the DateTimeParse function. Other responses put me onto the DateTime parse tool, which looks like a much easier way convert strings in a standard format to dates.

-Ken

Elena_Caric
Asteroide

Thanks!

kcgreen
Asteroide

I spent some extra time playing around with this one to make it work with a single formula.

 

Spoiler

 

REGEX_Replace(
(if Left([date], 1) = "1" Then REGEX_Replace([date], "(1)(?:\d{6})", "20")
elseif Left([date], 1) = "0" Then REGEX_Replace([date], "(0)(?:\d{6})", "19")
ELSE "Blank" endif)
+
right([date],6),
"(.{4})(.{2})(.{2})", "$1-$2-$3")

 

challenge46.JPG

 

CHarrison
Asteroide

Here's my solution :) 

Mattpannuzzo
Meteoro

My solution

 

 Workflow

Spoiler
challenge46workflowMPannuzzo.png

 

 Formula

Spoiler
challenge46formulaMPannuzzo.png
JordyMicheal
Bólido

Really neat.

Sorry, just going back and solving some

Syfer889
Meteoro

Interesting one here. Learning a lot though. Thank you!

luciebrett
Asteroide

Here's my attempt; bit different to the solution as I used left and substring.

mascarenhas_lucas
Asteroide

challenge_46.PNG

 

Spoiler
 
daniel_ferreira
Asteroide

Follow my solution file attached...