model为
public class A { [DisplayFormat(ApplyFormatInEditMode = true, DataFormatString = "{0:yyyy/MM/dd HH}")] public DateTime? AddDate { get; set; } }
view代码为
@Html.EditorFor(m => m.PlanJiaozhuDate)
action中无法接收到时间
public ActionResult Add(A a)