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

Announcements

News and Announcements icon
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.
Screenshot 2024-10-28 115752.png
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,579 Super User 2026 Season 1 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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 252 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 169

#3
Haque Profile Picture

Haque 154

Last 30 days Overall leaderboard