i'm trying to insert a date into mysql.
the date format, originally, is m/d/y . i want to convert it to Y/m/d for MySQL insert.
when i try to convert it, it defaults to 1969-12-31 (from 01/03/03)
help?
code sample:
$endDate = $_POST["endDate"];
$endDate = getdate($endDate);
$year = $endDate['year'];
$month = $endDate['mon'];
$mday = $endDate['mday'];
$endDate = $year ."-". $month ."-". $mday;