Posted by cvanschalkwijk on 02/23/06 21:28
Dave,
$timestamp = strtotime($row['depart_day']);
$dep_date = date("m/d/Y",$timestamp);
You want to convert the mysql datetime to a timestamp with strtotime
http://us2.php.net/manual/en/function.strtotime.php and then pass it
into date() with the format you want.
- Clay
Navigation:
[Reply to this message]
|