web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Difference between times
Power Apps
Unanswered

Difference between times

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Is there a way of getting the difference between two hour values and two minutes values and have the difference populated into a data card?

Categories:
I have the same question (0)
  • rubin_boer Profile Picture
    4,843 Super User 2024 Season 1 on at

    hi @Anonymous 

     

    Have you tried

    DateDiff(TimeOne, TimeTwo, Hours) //will give you the hours between the two datetimestamps

    DateDiff(TimeOne, TimeTwo, Minutes) //will give you the minutes between the two datetimestamps

     

    Hour(TimeOne) - Hour(TimeTwo) //will give you the difference between the hours, disregarding the days

    Minute(TimeOne) - Minute(TimeTwo) // will give you the difference between the minutes, disregarding the days

     

    More accurate for Hour will be 

    With({_TimeOne: Hour(TimeOne), _TimeTwo: Hour(TimeTwo)},Max(_TimeOne,_TimeTwo) - Min(_TimeOne,_TimeTwo))

     

    Hope it helps,

    R

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.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 355 Most Valuable Professional

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 150 Super User 2026 Season 2

Last 30 days Overall leaderboard