web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / how to change number t...
Power Automate
Answered

how to change number to time (hh:mm:ss) consider number value as seconds

(0) ShareShare
ReportReport
Posted on by 16
Hi every one,
 
       I need some help,
 
      how to change number to time (hh:mm:ss) consider number value as seconds.
 
i got data like number but it is seconds like(4, 60, 120) so i need to convert this in to time hh:mm:ss

Thanks,
Renjeesh.
I have the same question (0)
  • Suggested answer
    Meekou Profile Picture
    200 Moderator on at
    There are two options for you:
    • Try to use time function like below
    addSeconds('1970-01-01', 97, 'HH:mm:ss')
    • Try to build the string by convert seconds to hh, mm and ss
    concat(formatNumber(div(97, 3600), '00'), ':',
    formatNumber(mod(div(97, 60), 60), '00'),':',
    formatNumber(mod(97, 60), '00'))
    Note, 97 is my test input, you can replace it with your own varaible.
     
    Regards,
    Meekou
  • Suggested answer
    eetuRobo Profile Picture
    4,204 Super User 2025 Season 2 on at
    If you use Power Automate (cloud) flow in this process then do as @Meekou instructed. If you use only Power Automate Desktop then like this:
     



    Doesn't really matter what date you put but in Add put your variable and Time unit in Seconds:
     


     
    Convert datetime to text -action:

     
    Result:
  • CU26090608-0 Profile Picture
    16 on at
    Meekou  Thank you so much for the Answer  and eetuRobo  thank you so much for the Answer and clarification 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard