well, i've read like mad about this and still can't seem to find the solution so here i am.
simple stuff, just got a form with a few date fields. i want users to enter the dates in a standard mm/dd/yy or mm/dd/yyyy format.
i understand MySQL wants yyyy-mm-dd. anyhow, the page submits and then i need to re-format the dates to use in my MySQL UPDATE query.
how can i re-format it so MySQL will take it?
i've tried the PHP date() function:
$First_Satsang_Date = date("Y-m-d", $_POST[First_Satsang_Date]);
the value for $First_Satsang_Date gets passed initially as 05/07/2003 but after going through the date() function above, it get's turned into: 1969-12-31!!!!! WTF?????
what works? i've read of a lot and i must not be doing something right...
thanks in advance..