Ros
Ros

Reputation: 634

ASP.NET MVC AJAX Calendar

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

Answers (2)

Anand Senma
Anand Senma

Reputation: 1

index.cs

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

index.cshtml

@Html.EditorFor(m => m.StartDate)

Upvotes: -1

Alex Fort
Alex Fort

Reputation: 18821

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

Upvotes: 14

Related Questions