We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Disable list of dates

I read an article about disabling the weekends in the DatePicker with javascript, was wondering if there is any way of disabling a list of dates?

1 Reply

SP Sureshkumar P Syncfusion Team February 15, 2017 01:11 PM UTC

Hi Keith, 

Thank you for contacting Syncfusion Support, 

Yes, we have an option to disable a list of dates in datePicker control. You will achieve your requirement by using “blackoutDates” property. Here we have mentioned a list of date with array of objects and array of strings format. Please find the documentation link to know more about the “blockoutDates” property. Refer to the following link https://help.syncfusion.com/api/js/ejdatepicker#members:blackoutdates  
For your convenience, we have created one simple sample with your requirement in jsplayground. Please refer the JSPlayground link: http://jsplayground.syncfusion.com/eaznrzzm  

Sureshkumar P 

Live Chat Icon For mobile
Up arrow icon