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

Program DatePicker

(0) ShareShare
ReportReport
Posted on by 5,329 Super User 2025 Season 2

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)
  • Phineas Profile Picture
    5,329 Super User 2025 Season 2 on at

    Thank you.

     

    How about DatePicker1?

     

    Can it be set to show only Sunday dates?

  • v-bofeng-msft Profile Picture
    on at

    Hi @Phineas ,

     

    You could set DatePicker2's DefaultDate property to 

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

     

    Best Regards,

    Bof

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
Kalathiya Profile Picture

Kalathiya 427

#2
WarrenBelz Profile Picture

WarrenBelz 360 Most Valuable Professional

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 336 Super User 2025 Season 2

Last 30 days Overall leaderboard