wmguk
03-17-2008, 03:40 AM
Hey,
I am trying to format a date, its not a timestamp, basically you select the day, month and year from a drop down and its put in to the database in 3 seperate fields..
so if i do
$datef = "$date_day"."$date_month"."$date_year" ;
then echo $datef it displays right (17082007)
now i try and format the output, and its wrong..
$date = date("jS F Y", $datef);
i get 17th February 1970
any ideas?
I am trying to format a date, its not a timestamp, basically you select the day, month and year from a drop down and its put in to the database in 3 seperate fields..
so if i do
$datef = "$date_day"."$date_month"."$date_year" ;
then echo $datef it displays right (17082007)
now i try and format the output, and its wrong..
$date = date("jS F Y", $datef);
i get 17th February 1970
any ideas?