Announcements
Hi
It is possible calculate hours between dates? I could calculate days between dates
Assume that you already had validation, you can try this:
DateDiff(DateTimeValue(TextBox1.Text), DateTimeValue(TextBox2.Text)) * 24 + Hour(DateTimeValue(TextBox1.Text)) - Hour(DateTimeValue(TextBox2.Text))
Hi hngdev
Excellent, it worked great, thank you very much
Regards,
You're welcome
Your code may be usefull for me if is there a way to exclude weekends and holidays, How could I get that?
Regadrs
Americo
The post at https://blogs.msdn.microsoft.com/carlosfigueira/2017/09/23/excluding-weekends-and-holidays-in-date-differences-in-powerapps/ shows how to exclude weekends and holidays from date differences in PowerApps. Take a look and see how it can apply to your case.
Hope this helps!
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.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
11manish 352 Super User 2026 Season 2
M Bilal Khan 323
Mohsin Ali 226