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 / Check Date is a Saturd...
Power Apps
Unanswered

Check Date is a Saturday or Sunday

(0) ShareShare
ReportReport
Posted on by 271
Hi,
 
I need a formula in PowerApps, where it will check whether 20th of the current month is Saturday or Sunday. If 20th is Saturday, then need to populate a variable as 22 or if 20th is a Sunday, then the value of the variable will be 21
 
Regards
 
 
Categories:
I have the same question (0)
  • Suggested answer
    MS.Ragavendar Profile Picture
    4,975 Super User 2025 Season 2 on at
    Hi,
     
    With(DateCheck20, Date(Year(Today()),Month(Today(),20),
    If(Weekday(DateCheck20)=7,Date(Year(DateCheck20),Month(DateCheck20),22,
    Weekday(DateCheck20)=`,Date(Year(DateCheck20),Month(DateCheck20),21,DateCheck20)
    )
     
    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.
  • Verified answer
    Sam70 Profile Picture
    271 on at
    Hi,
     
    Had to edit the formula as below.
     
    With({DateCheck20: Date(Year(Today()),Month(Today()),20)},
    If(Weekday(DateCheck20)=7,Date(Year(DateCheck20),Month(DateCheck20),22),
    Weekday(DateCheck20)=1,Date(Year(DateCheck20),Month(DateCheck20),21),DateCheck20))
     
    Now it is working. Thanks.

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard