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.
Jump in, show your community spirit, and win prizes!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Valantis 483
WarrenBelz 399 Most Valuable Professional
11manish 327