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


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  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. ?>

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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.