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

Love a good DateTime challenge! Solved this one with one tool! 😀

 

To other challengers, the Time_Now value in the Output is different than the one in the Input, so your results will not match. 

 

Spoiler
Days = DateTimeDiff([Time_Now],[TIMESTAMP],'days')
Hours = DateTimeDiff([Time_Now],[TIMESTAMP],'hours')-[Days]*24
Minutes = DateTimeDiff([Time_Now],[TIMESTAMP],'minutes')-([Days]*1440)-([Hours]*60)
Seconds = DateTimeDiff([Time_Now],[TIMESTAMP],'seconds')-([Days]*86400)-([Hours]*3600)-([Minutes]*60)

Cheers!

Phil

RashedDS
Asteroid

My solution 

GSD
Meteor

My solution to the challenge:

 

Spoiler
Challenge 10.jpg

ABAsseged
Meteor
Spoiler
ABAsseged_0-1620081021296.png

 

ENix
Asteroid
Spoiler

ENix_0-1620648660247.png

 

SWalker
Meteor
Spoiler
challenge10_Preview.png

TKSnider
Asteroid

My solution is below

 

Honestly, this wasn't so much an intermediate, but closer to a beginner level (IMO).  Very limited need for much in the tool palette.

Vishnu_Sekhar
Meteor

Using the Mod function did the trick. Please find the attachment for the solution, 

ARussell34
Asteroid

Here is my solution!

Mario36
Asteroid

Here's my solution. This is a beginner challenge, I would not agree for this to be an intermediate.

Spoiler
Use the Formula Tool effectively with DataTimeDiff