cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
sachinsoni441 Helper II
Helper II

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
AndySid Resolver II
Resolver II

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
AndySid Resolver II
Resolver II

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
MBAS Gallery 2020

MBAS Gallery 2020

Watch Microsoft Business Applications Summit sessions on-demand.

firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Apps Community!

Power Platform 2020 release wave 1 plan

Power Platform 2020 release wave 1 plan

Features releasing from April 2020 through September 2020

Top Solution Authors
Top Kudoed Authors
Users online (7,057)