MVC3 passing incorrectly formatted datetime to Controller but correcting it in the Controller action gives ModelState error
问题 Am I the only one having this problem or I am doing it in totally wrong direction. I have a View passing DateTime value: <div class="control-group"> @Html.Label("Appointment date", null, new { @class = "control-label" }) <div class="controls"> <div class="input-append"> @Html.TextBoxFor(model => model.Appointment.Client_PreferredDate, new { @readonly = "readonly" }) <span class="add-on margin-fix"><i class="icon-th"></i></span> </div> <p class="help-block"> @Html.ValidationMessageFor(model =>