I have an MVC view where I list a dateTime type column named \"CreatedOn\", the values are formatted like this: \'DD/MM/YYYY HH:MM:SS\', When I click on edit l
jQuery Validate doesn't understand cultures.
I believe for dates, it just calls the javascript: new Date(value)
.
You can fix this with a globalization plugin and a bit of javascript.
Microsoft wrote a globalization plugin here: https://github.com/jquery/globalize
Then you want to replace the validation method with something like this:
$.validator.methods.date = function (value, element) {
return this.optional(element) || Globalize.parseDate(value);
}
You probably also want to replace the other methods for numbers etc. - have a look at the bottom of jquery.validate.js
for examples.