I have a situation where I am having trouble with the client side validation of a datetime field. When I try to submit it keeps telling me the date is invalid (27/7/2013).
Try with this,
View
@Html.LabelFor(m => m.DOB) @Html.TextBoxFor(m => m.DOB, new { @Formate = "dd/MM/yyyy" }) @Html.ValidationMessageFor(m => m.DOB)
Model
[DisplayName("Date Of Birth")][DataType(DataType.Date)] public DateTime DOB { get; set; }