In asp.net MVC 5, I have a form that displays data from a DTO object:
public class FieldDTO { [DataType(DataType.DateTime)] [DisplayFormat(ApplyFormatInE
For me just have this code to ovewrite the default Jquery datetime validation:
$(function () { $.validator.methods.date = function (value, element) { return this.optional(element) || moment(value, "L", true).isValid(); } });