DataType attribute wrecking jQuery datepicker on Datetime field
问题 I am using MVC 4 and Razor views and am having trouble understanding why the Edit view on my Date field is not binding properly to the built in jQuery datepicker. The field is of datatype Date in the Database, and DateTime in the domain model. I do not wish to show time, only the date. The field is required and needs formatting. My view looks like this : <div class="editor-label"> @Html.LabelFor(model => model.Appointment.EndDate) </div> <div class="editor-field"> @Html.EditorFor(model =>