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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Calculate Date differe...
Power Apps
Unanswered

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard