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 / Calculate Date differe...
Power Apps
Answered

Calculate Date difference in canvas app

(0) ShareShare
ReportReport
Posted on by 17

Hi,

 

I am confused and hoping someone can help as I am new member.

 

I want to display day period in one label, How can I get that?

 

Please help.

 

 

Categories:
I have the same question (0)
  • Verified answer
    BJ94 Profile Picture
    264 on at

    HI @94zeba 

     

    If you want to calculate the days between two dates you can use following formula:

     

    DateDiff(DateTimeValue(DatePicker1.SelectedDate),DateTimeValue(DatePicker1_1.SelectedDate),Days)

     

    On label Text property you can apply this formula.

     

    -------------------------------------------------------------------------------------------

    Regards,

    Bharti

    Community Support Team _ Bharti
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

  • 94zeba Profile Picture
    17 on at

    @BJ94 

     

    Thank you for reply. 

     

    Can we get time difference between two dates?

     

  • Verified answer
    BJ94 Profile Picture
    264 on at

    Hi @94zeba 

     

    You can take another label and you can add following formula on that-

    DateDiff(
    DateTimeValue(DatePicker1.SelectedDate),
    DateTimeValue(DatePicker1_1),
    Hours
    )

     

    -------------------------------------------------------------------------------------------

    Regards,

    Bharti

    Community Support Team _ Bharti
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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 427 Most Valuable Professional

#2
11manish Profile Picture

11manish 201 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard