• Material 3
  • Fluent
  • Bootstrap v5
  • Tailwind CSS
  • High Contrast
Preferences
Theme Selection
Theme Modes
Mode Selection
Touch
Mouse
Localization
*Translated by Google Translator.
Currency

Example of Disabled Dates in ASP.NET MVC DateTimePicker Control

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.

DEMO
SOURCE

Disabled Dates sample demonstrates how to disable specific dates in the Calendar 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 Calendar. Here the weekend dates are disabled by using renderDayCell.

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

Transform your ASP.NET MVC web apps today with Syncfusion ASP.NET MVC components
85+ high-performance and responsive UI components
Dedicated support
Hassle-free licensing
TRY IT FOR FREE