Example of Disabled Dates in React DateTimePicker Component


In the following sample, all the weekends (Saturday and Sunday) of a month are disabled, and these dates are restricted to set or select in the DateTimePicker.

More Details...


Disabled Dates sample demonstrates how to disable specific dates in the DateTimePicker by using renderDayCell event. This event gets triggered on each day cell element creation, that allows you to customize, or disable specific dates in the DateTimePicker. Here the weekend dates are disabled by using renderDayCell.

More information on the disabled dates can be found in the documentation section.