Getting date time always null back to controller in MVC3
问题 Using MVC3 and jQuery plugin datepicker. I can see calender and I am able to set the date to the field. But when I post model back to controller, I am always getting null value for the property. And it is displaying that particular date as a not valid date. This is my model. [DataType(DataType.DateTime)] [DisplayName("PostTime")] [DisplayFormat(DataFormatString = "{0:dd/MM/yyyy}", ApplyFormatInEditMode = true)] public DateTime? PostTime { get; set; } And part of my view @using (Html.BeginForm