Problem with Date function
output: 00:00am on Sunday December 17th, 2011
Problem hour and minutes always display 00:00 and sometime Year is also incorrect
Input date('Y-m-d H:i:s', time());
functions
public function perfect_date_format($date) {
$dated = str_replace(array(" ", ":"), "-", $date);
list($year, $month, $day, $hour, $minute) = explode("-", $date);
$niceday = @date("H:ia \o\\n\ l, F jS, Y", mktime($hour, $minute, 0, $month, $day, $year));
return $niceday;
}
strtotime()?