Blog

PHP Date & Time Function

Posted On:

$EventDate = $res->StartDate;				
echo date('l dS F Y', strtotime($EventDate));
echo " at ";
$EventTime = $res->StartTime;				
echo date("g:i a", strtotime($EventTime));

Produces Sunday 09th November 2014 at 6:15 pm

Comments