The date format of my system is dd-MMM-yyyy, which is what the browsers show, by default and cannot be changed.
But this is just the format in which the value is shown. Date inputs ALWAYS return the value in yyyy-MM-dd format.
The DMX validator is not checking with the actual date value for some reason.
Please check.
Working great. Thanks a lot.
A note: Had to add this in a document.ready function. Was getting max does-not-exist error when running directly, even if put after dmxValidator.js.
Hope to see this fixed permanently in the upcoming updates.
At least one of the two or both must be converted to a number. When at least one is a number it will do a number compare, when both are string it will do a string compare.
5 < 15 (true)
5 < "15" (true)
"5" < "15" (false)
For the date field you can do a string compare of the value, while for numbers you need to convert the value first to an actual number to prevent a string compare and false result.