Notifications
Announcements
Hi Powerheros,
I want to disable selecting of sunday in date picker please suggest me how to achieve it
If(Weekday(DatePicker1.SelectedDate, StartOfWeek.Sunday) <> 5, "You have selected sunday, Change the selection")
The only thing I see wrong with the formula is that if the start of your week is Sunday then you should be comparing it to 1.
If(Weekday(DatePicker1.SelectedDate, StartOfWeek.Sunday) = 1, "Sunday", "Not Sunday ")
You can put the code into a label as a warning and/or gray out the submit button to prevent the user from submitting until they have correct the issue.
hi @Jeff_Thorpe what if I would like to enable only saturday and sunday date picker and disable weekdays?
It's worked.
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.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 711 Most Valuable Professional
Michael E. Gernaey 319 Super User 2025 Season 2
Power Platform 1919 268