jQueryUI数据报警器和MVC视图模型类型日期时间
@Html.TextBoxFor(o => o.JobStartDate, new { id = "dt1", @class = "input-block-level" })@Html.ValidationMessage("JobStartDate")
$("#dt1").datepicker({ dateFormat: "dd/mm/yy" });
[Required][DataType(DataType.Date)][Display(Name = "Start Date")]public DateTime JobStartDate { get; set; }
慕标琳琳
相关分类