cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
tbrantley
Helper IV
Helper IV

Calculating the difference between two times

Can someone help me with this forumula to calculate the difference between two times?

 

My formula in sharepoint is 24*(EndTime1-StartTime1). Not sure how to do this in Powerapps

 

Capture5.PNG

 

13 REPLIES 13
Anonymous
Not applicable

Thanks so much! 🙂

Hi,

Using above formula I get result as below,

start time : 11:00

end time :12.30

result: 1.5

 

But I want in the format of 1:30.

How can I achieve this?

 

 

Anonymous
Not applicable

@Suchithra_A 

 

What happends when you remove the / 60?

sjoepcoup
Advocate I
Advocate I

Schermafbeelding 2021-04-08 131429.png

Schermafbeelding 2021-04-08 133730.png

Hello,

I have found the solution to the problem that the data shows 1.30 instead of 1.50.

 

This is my formula:

On button:

Set (

Start working time;

DatePicker1_1.SelectedDate + Time ( Value (Dropdown7_3.SelectedText.Value);

Value (Dropdown7_2.SelectedText.Value); 0 ) ) ;;

Set ( totaltraveltime;

RoundUp ( DateDiff ( DateTimeValue (Label60.Text);

DateTimeValue (Label60_1.Text);

Minutes ); 2 ) ) ;;

 

On an other textfield:

Time (0; totaltraveltime; 00)

 

I hope this works for you.

 

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (2,850)