Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.

Change Number to hh:mm:ss Format

F718772
5 - Atom

Hi Team, i am a beginner to the Alteryx world and would want help with a couple of things. For now, I want someone to help me to change the number format to hh:mm:ss format which is the time formata

4 REPLIES 4
PhilipMannering
16 - Nebula
16 - Nebula

When you say "number format", do you mean number of seconds or something else?

rzdodson
12 - Quasar

@F718772 assuming that you are referencing the hour of the day (1 = 1AM, 2 = 2AM, etc.). If so, here is one formula based solution.

 

1 - Solution.png

 

In the formula, I am handing the Byte-formatted hour field as a string with the ToString syntax so it can be concatenated with other text strings to produce the desired format.

F718772
5 - Atom

Thank you for your responses. I have the number format like a decimal number (12) i want to change the format to 12:00:00 (hh:mm:ss) format is there a way we can do that ?

PhilipMannering
16 - Nebula
16 - Nebula

Yep. It looks like you can use the Formula Tool,

 

ToDateTime([Field1]/24)

 

And save the type as "Time". Example attached. 

Labels
Top Solution Authors