<?
//Pass 2005-01-22 01:05:00 and get the output Sun, Jan 22, 07 : 01:05:am
function SafGetFullDateTime04($mytimestamp){ //send 2006-05-22 00:00:00 Output Sun, Mar 11, 07 : 01:05:am
if ($timestamp!="0000-00-00 00:00:00") {
list($year,$month,$day,$hour,$minute,$second) = explode("-",str_replace(array(" ",":"),"-",$mytimestamp));
$mytimestamp = date('d M, D, y',mktime($hour, $minute, $second, $month, $day, $year));
$mytimestamp = $mytimestamp . "<br><font color=\"#808080\">" . date('h:i:a',mktime($hour, $minute, $second, $month, $day, $year)) . "</font>";
return $mytimestamp;
}
}
?>
Print full formated time using SafGetFullDateTime04
