我目前正在学习ASP.NET MVC,并且已经按照Stephen Walther的教程:ASP.NET MVC Tip #36 – Create a Popup Calendar Helper进行了操作。
日历已经可以使用,但我想要将日期格式更改为dd/mm/yyyy。
同时,您能否在顶部添加箭头,以便可以按年和月更改日历?
日历已经可以使用,但我想要将日期格式更改为dd/mm/yyyy。
同时,您能否在顶部添加箭头,以便可以按年和月更改日历?
我知道这可能是为了学习目的,但已经存在一个好的解决方案:JQuery UI日期选择器
index.cs
[DataType(DataType.Date)]
public string StartDate { get; set; }
index.cshtml
@Html.EditorFor(m => m.StartDate)