[wd_asp elements=’search’ ratio=’100%’ id=1]

Todays date and Yesterdays date

23rd January 2014

Php - Dates & Time

php codehaven

Todays date also!
";
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");

or $yesterday= date("Y-m-d", time()-86400);