Posted By

darokin on 03/17/10


Tagged

php month day date jour mois


Versions (?)

PHP Date moins / plus n jours / mois


 / Published in: PHP
 

  1. $nbDays = 15;
  2. $dateBase = time();
  3. $dateNew = date("Ymd", $dateBase - (86400 * $nbDays));

Report this snippet  

You need to login to post a comment.