Reputation: 634
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?
Upvotes: 5
Views: 14157
Reputation: 1
index.cs
[DataType(DataType.Date)]
public string StartDate { get; set; }
index.cshtml
@Html.EditorFor(m => m.StartDate)
Upvotes: -1
Reputation: 18821
I know this is probably for learning purposes, but a good solution already exists: JQuery UI Datepicker
Upvotes: 14