I have a jquery calendar that sets the input value to MM/DD/YYYY
How would I convert it so that my database column (date) can accept it correctly?
EDIT
You want to do this in PHP, right?
Use Explode
$christmas = "12/25/2010"; $parts = explode('/',$christmas); $yyyy_mm_dd = $parts[2] . '-' . $parts[0] . '-' . $parts[1]
Use strptime to parse it to a timestamp and then strftime to format it the way you want it.
strptime
strftime