Date format show in php…..

Posted: July 18, 2013 in Timing Function

function date_format($datetime){
$date_format = date(‘j F, Y’,strtotime($datetime));
return $date_format;
}

$datetime = ‘2013-07-15 12:07:58’;

echo date_format($datetime);

return 15 July, 2013 .

Advertisements

Comments are closed.