I'm trying to format the value of mktime into the following format: l M d Y
I'm using the following code:
$today = mktime(0,0,0,date('m'),date('d'),date('Y'));
if ($today == $today){
echo $today;
echo 'Today';
}
echo '<br><br>';
$tomorrow_mktime = mktime(0,0,0,date('m'),date('d')+1,date('Y'));
$tomorrow_date= strftime('%Y-%d-%m',$tomorrow_mktime);
echo date('l M-d-Y',$tomorrow_date);
This results in the date Wednesday Dec 31 1969.
What am I missing?