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 #10: Date Time Calculations

MarMu
アステロイド

 

Good ol' 1 tool wunder. A round of applause for MOD

Had to use the solution file as input as DataTime_Now in input is 41 seconds earlier than output

 

スポイラ
challenge_10_start_file_MarMu.png
tammybrown_tds
コメット

I used modulo formulas for the minutes, hours and seconds.

pmwillen
メテオール
スポイラ
2018-08-09_16-46-02.png

A little more manual than I would have preferred, but it works.

myastarling
ボリード

Here's my solution.

kat
クエーサー
スポイラ
Challenge #10.PNG
willstom1
アステロイド

Here is my solution - rather than using floor or mod I changed data type to fixed decimal to truncate the result of the calculation:

 

スポイラ
Alteryx Challenge 10 Solution.PNG
AT_12
メテオール

Step 1: Used DateTime Tool

Step 2: Formula Tool

DateTimeDiff= DateTimeDiff([DateTimeNOW],[DateTime],"seconds")

Days= DateTimeDiff([Time_Now],[TIMESTAMP],"days")

Hours= DateTimeDiff([Time_Now],[TIMESTAMP],"hours")-DateTimeDiff([Time_Now],[TIMESTAMP],"days")*24

Minutes: DateTimeDiff([Time_Now],[TIMESTAMP],"minutes")

-(DateTimeDiff([Time_Now],[TIMESTAMP],"hours")*60)

Seconds= DateTimeDiff([Time_Now],[TIMESTAMP],"seconds")

-(DateTimeDiff([Time_Now],[TIMESTAMP],"minutes")*60)

TimothyB
メテオロイド

My attempt - Multi Row formula to update Time Now Column (for accuracy). Four Column Formula using TimeDateDiff and subtracting the formula value at the appropriate conversion scale. 

スポイラ
wk-10.pngwk-10rx.png

Updated with Formula configuration screenshot

 

 

MattDuncan
メテオール

Solution attached :)

OllieClarke
16 - Nebula
16 - Nebula

Just the one tool this week:

スポイラ
challenge 10.PNGchallenge 10-2.PNG