Posted By

satie83 on 06/12/12


php time date

Versions (?)

PHP - Getting Yesterday's Date in PHP

 / Published in: 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.