How can i change jQuery validate 'date' to mysql format? With the current one, my MySql dates are not valid.
MySQL date format - YYYY-MM-DD
Also, is there a native 'time' validator? Or do you have to add your own method for it?
How can i change jQuery validate 'date' to mysql format? With the current one, my MySql dates are not valid.
MySQL date format - YYYY-MM-DD
Also, is there a native 'time' validator? Or do you have to add your own method for it?
Mysql can generate ISO date .. if you "use strict" you should be able to use Date.parse in the future but for now check this : https://github.com/csnover/js-iso8601 and use the function for ISO date parsing. For generating ISO from javascript date object check this question : How do I output an ISO 8601 formatted string in JavaScript?
Good luck!