Notifications
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.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 739 Most Valuable Professional
Michael E. Gernaey 343 Super User 2025 Season 2
Power Platform 1919 268