I am working on an asp.net mvc-4 web application. and i have a field of type DateTime, where i defined a jQuery datepicker to populate its value as follow:-
<div>
<span class="f"> @Html.DisplayNameFor(model => model.LiveDate) </span>
@Html.TextBoxFor(model => model.LiveDate, new { @class = "datepicker", @Value = (Model != null && Model.LiveDate.HasValue) ? Model.LiveDate.Value.ToString("dd/MM/yyyy") : string.Empty })<span class="requiredicon"> *</span>
@Html.ValidationMessageFor(model => model.LiveDate)
</div>
$(".datepicker").datepicker({
dateFormat: "dd/mm/yy",
showOn: "both"
});
now when i try selecting a date from the jQuery date picker such as 17/05/2016
i will get the following error The field Live Date must be a date.
only on Safari & Chrome web browsers, while on IE and Firefox it will work well. also if i select a date such as 01/05/2016
it will work on all the browsers,,, so can anyone advice on this please?