Return to Snippet

Revision: 3517
at August 6, 2007 11:55 by depmed


Initial Code
/* Go from MM/DD/YYYY form input to YYYY-MM-DD */

$dateArray=explode('/',$_POST[theInputDate]);
$date = $dateStartArray[2]."-".$dateStartArray[0]."-".$dateStartArray[1];

Initial URL

                                

Initial Description

                                

Initial Title
Transform MM/DD/YYYY to SQL date format

Initial Tags
mysql, date

Initial Language
PHP