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 / How to get the weekend...
Power Apps
Unanswered

How to get the weekend days based on the two date pickers?

(0) ShareShare
ReportReport
Posted on by 177

Hi,

I need the no of Saturdays and Sundays in between the two date pickers.

Kindly advise

Categories:
  • WarrenBelz Profile Picture
    156,967 Most Valuable Professional on at

    Hi @Ganeshtamil_29 ,

    This will count the weekend days

    With(
     {
     wWeeks: 
     RoundDown(
     DateDiff(
     DatePickerStart.SelectedDate,
     DatePickerEnd.SelectedDate,
     Days
     ) / 7,
     0
     )
     },
     2 * If(
     Weekday(DatePickerEnd.SelectedDate) < Weekday(DatePickerStart.SelectedDate),
     wWeeks + 1,
     wWeeks
     )
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

     

  • Ganeshtamil_29 Profile Picture
    177 on at

    Hi,

    Your formula is count the Saturdays and sundays in between two date pickers but it will not count the Saturdays itself. need that too.. kindly advise

    Ganeshtamil_29_0-1654831794594.png  

    Ganeshtamil_29_1-1654831854491.png

     

     

  • WarrenBelz Profile Picture
    156,967 Most Valuable Professional on at

    @Ganeshtamil_29 

    Assuming the dates are week dates, divide it by 2

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 220 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 189 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 139

Last 30 days Overall leaderboard