Todays date also! "; echo date("Y-m-d", strtotime( '-1 days' ) ); ?>
"; echo date("Y-m-d", strtotime( '-1 days' ) ); ?>
Easy to read (2nd July, 2014 – 15:58 pm) echo date("jS F, Y - H:i a");
echo date("jS F, Y - H:i a");
or $yesterday= date("Y-m-d", time()-86400);
$yesterday= date("Y-m-d", time()-86400);