ASP.NET MVC AJAX Calendar

I am currently studying ASP.NET MVC and I have been following Stephen Walter's tutorial: ASP.NET MVC Tip # 36 - Create a pop-up calendar assistant .

The calendar works, but I would like to change the date format to dd / mm / yyyy.

Also, can you add the arrows at the top so that the calendar can be changed for both the year and the month?

+5
source share
2 answers

I know this is probably for training purposes, but a good solution already exists: jQuery UI Datepicker

+14
source

index.cs

[DataType(DataType.Date)]
public string StartDate { get; set; }

index.cshtml

@Html.EditorFor(m => m.StartDate)
-1
source

All Articles