• 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 DatePickerFor in ASP.NET MVC DatePicker Control

Click/Touch the submit button to post the selected value in the DatePicker. When posting the null value, validation error message will be shown below the DatePicker.

DEMO
SOURCE

This sample demonstrates the strongly typed extension support in DatePicker. Date value is set to DatePicker from code behind and its set to DatePicker in view page by invoking the strongly typed DatePickerFor helper with the lamba expression.

More information on the DatePicker instantiation 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