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 Apps / Format number to hh:mm
Power Apps
Answered

Format number to hh:mm

(0) ShareShare
ReportReport
Posted on by 171

I have a field in which the number 2.7 is displayed. I want this number to be displayed in the format hh:mm. How do I do this?

Categories:
  • Murillo-Mariano Profile Picture
    on at

    Can you write more details? Is this a time value in decimal format?

  • TheRobRush Profile Picture
    11,128 Moderator on at
    Text(Value(First(Split(Label15.Text,".")).Value),"##")
    &":"
    &Text(Value(Last(Split(Label15.Text,".")).Value)*6,"##")
  • TheRobRush Profile Picture
    11,128 Moderator on at

    can also wrap with timevalue to make a real time

    TimeValue(Text(Value(First(Split(Label15.Text,".")).Value),"##")&":"&Text(Value(Last(Split(Label15.Text,".")).Value)*6,"##"))
  • AIMEN_promero Profile Picture
    60 on at

    How do you want to convert 2.7 into a time value?  Is 2.7 intended to be a value in hours?

     

    Then use the formula: 

     

    Text(Value(First(Split(TextInput1;".")).Value);"00")&":"&Text(Value(Last(Split(TextInput1;".")).Value)*6;"00")

  • AIMEN_promero Profile Picture
    60 on at

    TextInput1 is the field where you have the 2.7 (or any other value) stored, and then you can create a label with the text generated by the formula above, to show the result as hh:mm, in the case of 2.7 it would show 02:42

  • alt88 Profile Picture
    171 on at

    Thank you for the quick feedback. I have tried this variant and when I enter 1, I get the number 1:06. More details on my application. The inputs are hours which means it should be shown 1:00 instead of 1:06. The entries can be from 0 min to 10 hours. Is it better to work with minutes?  How would the formatting then look in hh:mm?

  • alt88 Profile Picture
    171 on at

    The number I get is a decimal number, i.e. 0.0, 0.5 and 10 can be anything and should be output in the format hh:mm, i.e. hour and minute, or formatted.

  • alt88 Profile Picture
    171 on at

    that looks very good! But with 2 hours of work I unfortunately get the result 2:12 instead of 2:00.

  • Verified answer
    alt88 Profile Picture
    171 on at

    I change it to following Text(Int(Value(TextInput1.Text)), "##") & ":" & Text(Round(Mod(Value(TextInput1.Text), 1) * 60, 2), "00") now i am getting 2:00 when the decimal is 2 

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 236 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 188 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 130

Last 30 days Overall leaderboard