joined:June 6, 2012
I have a form input that accepts a date and inserts it into a MySQL database. The current format is YYYY, MM-DD. This is the format that I require on one of the forms that allows the user to input a date range for a custom report. I'm going to replace the manual input with a graphical calendar using jquery but it's been requested that I change the date formate to MM/DD/YYYY.
In a nut shell, how can I convert MM/DD/YYYY to YYYY, MM-DD so the database will recognize it?