Join the Alteryx Community’s Maveryx Summer Cup event! Compete, network with others, and earn your gold through a series of challenges from July 24th to August 11th. Learn more about the event here.

Alteryx Designer Desktop Discussions

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

Time Conversion Seconds (SS) to MM:SS

TheSAguy
7 - Meteor

 

Hi,

 

I'm trying to convert Seconds to Minutes and Seconds. 

I'm having trouble that when there are Hours (HH) that gets added or dropped....

 

So 60 Sec should be 01:00

6000 seconds should be 100:00 and not 01:40:00

 

Thanks.

 

5 REPLIES 5
DataNath
17 - Castor

Don’t have my laptop to hand but give the following a try. Can check when home if this doesn’t work and nobody else has jumped in!


DateTimeFormat(DateTimeParse([Insert your field], ‘%S’), ‘%M:%S’)

DataNath
17 - Castor

May need to convert your field containing seconds to a string first for the function to work.

FrederikE
13 - Pulsar

The Time Datatype always saves it like you described it. If you want to save it differently you might want to change your datatype to be an integer. With "DateTimeMinutes" you will then get the absolut number of Minutes.

AngelosPachis
16 - Nebula

Hi @TheSAguy ,

 

Here's how you can do it using a formula tool

 

AngelosPachis_0-1653589766192.png

 

Hope that helps,

Angelos

TheSAguy
7 - Meteor

Thanks!! Much appreciated.

 

Labels