Question

I am currently learning ASP.NET MVC and I have followed Stephen Walther's tutorial: ASP.NET MVC Tip #36 – Create a Popup Calendar Helper.

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

Also are you able to add arrows at the top, so that the calendar can be changed by year as well as month?

Was it helpful?

Solution

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

OTHER TIPS

index.cs

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

index.cshtml

@Html.EditorFor(m => m.StartDate)
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top