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 Apps
Answered

Total time

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi every one i have a problem i don't know File extension 

because now i have 2 time = start and stop time in text label screen1 

is 2 text is label5 = start and label 5_1 =stopand next screen

Thatsanavinai_1-1695349584432.png

and next screen

i have 3 label 

label6 = start , label6_1 = stop 

label6 i use code label5.Text  label6 show start time same screen1  and i use code stop time same start time

 

Thatsanavinai_0-1695349555157.png

now i use code to total is Label6 - Label6_1 = Start time - Stop time 

and is error and show The value '9.15.23' cannot be converted to a number.

i want to know how i convert to number or i calculate total time in screen1 

if i will calculate total time in screen1 how i can do

Categories:
I have the same question (0)
  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    HI @Anonymous,

    Only number value could be compared when doing subtraction.

     

    Generally, we calculate time as below:

    DateDiff(StartTime1,EndTime1,Hours)

    You should refer to the time value directly instead of label text

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    thx for solution but i want to have a time is hh:mm:ss = hour:min:sec 

    is you solution have a single number 

    and do you know how i can do to have hh:mm:ss 

  • v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @Anonymous,

    You mean you want to display the time difference into hh:mm:ss?

     

    If so, please modify your formula as below:

    Text(RoundDown(DateDiff(StartTime,EndTime,Seconds)/3600,0),"00")&":"&
    Text(If(RoundDown(DateDiff(StartTime,EndTime,Seconds)/60,0)>59,0,RoundDown(DateDiff(StartTime,EndTime,Seconds)/60,0)),"00")&":"&
    Text(Mod(DateDiff(StartTime,EndTime,Seconds),60),"00")

    vqiaqimsft_0-1695361444382.png

     

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 Apps

#1
WarrenBelz Profile Picture

WarrenBelz 335 Most Valuable Professional

#2
11manish Profile Picture

11manish 165

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 96 Super User 2026 Season 1

Last 30 days Overall leaderboard