Return to Snippet

Revision: 57843
at June 12, 2012 20:46 by satie83


Initial Code
date("Y-m-d", time() - (60*60*24) ); // get Yesterday date

Initial URL
http://terriswallow.com/weblog/2009/get-calculate-yesterday-date-php/

Initial Description
Example calculate yesterday, but if you multiply by some number you can get in an easy way, weeks, months or years

Initial Title
PHP - Getting Yesterday\'s Date in PHP

Initial Tags
php, date

Initial Language
PHP