cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
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
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
thirdimage

Coming Soon: T-Shirt Design Contest

Keep your eyes open for our upcoming T-shirt design contest!

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

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