Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Power Query
Answered

Check Date is a Saturday or Sunday

(0) ShareShare
ReportReport
Posted on by 256
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:
  • Verified answer
    Sam70 Profile Picture
    256 on at
    Check Date is a Saturday or Sunday
    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.
  • Suggested answer
    MS.Ragavendar Profile Picture
    1,126 on at
    Check Date is a Saturday or Sunday
    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.

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,513 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,683 Most Valuable Professional

Leaderboard

Featured topics