c# – How to Create a Helper for Creating a Datepicker

Question:

I would like to create an MVC Helper for creating a DatePicker .

Example:

@Html.DatePicker();

Answer:

I verified that I can install this helper in my project via Nuget.

@Html.DatePickerFor(model => model.Date)

https://www.nuget.org/packages/DatePickerHTMLHelper/

Scroll to Top