Posted By

fackz on 03/23/11


Tagged

month date days next calculate tomorrow


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

notturnale
fackz
Envo


How to Find Tomorrow, Next Month, or Next Year using PHP


 / Published in: PHP
 

URL: http://www.stemkoski.com/how-to-find-tomorrow-next-month-or-next-year-using-php/

  1. <?PHP
  2.  
  3. //TODAY'S DATE
  4. $start = date("Y-m-d");
  5.  
  6. //1 MONTH FROM TODAY
  7. $end = date("Y-m-d",strtotime("+1 months"));
  8.  
  9. //SEND REMINDER 25 DAYS FROM TODAY
  10. $reminder = date("Y-m-d",strtotime("+25 days"));
  11.  
  12. //REMOVE THE RECORD 1 YEAR FROM TODAY
  13. $remove = date("Y-m-d",strtotime("+1 years"));
  14.  
  15. ?>

Report this snippet  

You need to login to post a comment.