Posted By

satie83 on 06/12/12


Tagged

php time date


Versions (?)

PHP - Getting Yesterday's Date in PHP


 / Published in: PHP
 

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

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

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

Report this snippet  

You need to login to post a comment.