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 Apps
Unanswered

Program DatePicker

(0) ShareShare
ReportReport
Posted on by 5,331 Moderator

I have an app in which I need two DatePickers, one for the start of work week date, the other for the end of work week date.

 

Is it possible to write a formula that allows only the dates associated with each Sunday in a given year to appear as choices in DatePicker1, and the dates for only Saturday (or the Sunday plus seven days), in that same year in DatePicker2? 

 

If yes, can DatePicker2 formula autopopulate the appropriate Saturday date based on the Sunday selected in DatePicker1?

Categories:
I have the same question (0)
  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @Phineas ,

     

    You could set DatePicker2's DefaultDate property to 

    DateAdd(DatePicker1.SelectedDate,7-Weekday(DatePicker1.SelectedDate),TimeUnit.Days)

     

    Best Regards,

    Bof

  • Phineas Profile Picture
    5,331 Moderator on at

    Thank you.

     

    How about DatePicker1?

     

    Can it be set to show only Sunday dates?

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 529 Most Valuable Professional

#2
Haque Profile Picture

Haque 230

#3
Kalathiya Profile Picture

Kalathiya 217 Super User 2026 Season 1

Last 30 days Overall leaderboard