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?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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!