cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
sachinsoni441
Level: Powered On

Calculate Duration between two times

Hello all powerapps users,

 

I have four dropdowns, which store hour and minutes, two dropdown for start time and two dropdown for end time.

I want to calculate time duration between two times.

 

please provide how can i calculate time difference.

 

Note: Time Calculate for only single date.

 

error.jpg

 

 

 

Thanks

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
AndySid
Level 8

Re: Calculate Duration between two times

Hi, 

I use this formula, using 24 hour dropdowns...

Took me a while to sort when I did but works well.

 

Text(((HourValue12_2.Selected.Value*60+MinuteValue12_2.Selected.Value)-( HourValue11_2.Selected.Value*60+MinuteValue11_2.Selected.Value))/60,"[$-en-US]###.00")

Hope this helps....

 

>>If you found this reply helpful, please mark this as the answer to close the topic and make it easier to find for other people with similar questions.<<

 

 

View solution in original post

1 REPLY 1
Highlighted
AndySid
Level 8

Re: Calculate Duration between two times

Hi, 

I use this formula, using 24 hour dropdowns...

Took me a while to sort when I did but works well.

 

Text(((HourValue12_2.Selected.Value*60+MinuteValue12_2.Selected.Value)-( HourValue11_2.Selected.Value*60+MinuteValue11_2.Selected.Value))/60,"[$-en-US]###.00")

Hope this helps....

 

>>If you found this reply helpful, please mark this as the answer to close the topic and make it easier to find for other people with similar questions.<<

 

 

View solution in original post

Helpful resources

Announcements
New Ranks and Rank Icons in April

'New Ranks and Rank Icons in April

Read the announcement for more information!

Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (3,533)