my db stores dates as yyyy-mm-dd
my interface in php retrieve them is mm/dd/yyyy
i need to convert both ways, and on the conversion of
$DECORDED = date("Y-m-d", strtotime($DRECORDED));
where $DRECORDED is of mm/dd/yyyy
I am have no luck
if DRECORDED = 8/10/2005
then the conversion results in 2008-10-20 (the right format but wrong numbers)
somehow im not tellin the date function what format my original date is in, any help would be nice
thanks
my interface in php retrieve them is mm/dd/yyyy
i need to convert both ways, and on the conversion of
$DECORDED = date("Y-m-d", strtotime($DRECORDED));
where $DRECORDED is of mm/dd/yyyy
I am have no luck
if DRECORDED = 8/10/2005
then the conversion results in 2008-10-20 (the right format but wrong numbers)
somehow im not tellin the date function what format my original date is in, any help would be nice
thanks