Notifications
Announcements
Do you know how I can disable dates in a datepicker control in powerapps based on a date range.
I have a SharePoint list to specify the date ranges that will be disabled. For example, Block1 record dates between StartDate and EndDate will be disabled.
@mthiru_0023, is the Date Picker control inside a Gallery that has the table records including the start and end date? Can you share screenshots?
@AhmedSalih, I have a vertical gallery on the left of the screen. I am still working on the UI but the datepicker control is inside an edit form on the right side of the vertical gallery.
@mthiru_0023, one more question, are looking to disable the dates inside the date picker, or disable the date picker control all together?
Hi @AhmedSalih, I am looking for a simple solution to disable dates from selection or color code it black/grey so that the user is aware this date is not available for selection based on the date range in SharePoint. I am happy to hear any suggestion that can utilized here. Basically, there will be date ranges every year (which change) and reflected on a SharePoint list that are not available for selection. Also, previous date and weekend dates are not available for selection.
I am also reading this video from @Reza may help me.
(220) Build CALENDAR Control in POWER APPS in Minutes | Connect to SharePoint List - YouTube
@mthiru_0023, actually @RezaDorrani approach would be the only way you can do that as the Date picker doesn't support your requirement.
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