Create more dates/times from strtotime()


SUBMITTED BY: henry1874w

DATE: June 17, 2017, 1:28 p.m.

FORMAT: Text only

SIZE: 278 Bytes

HITS: 217

  1. <!DOCTYPE html>
  2. <html>
  3. <body>
  4. <?php
  5. $d=strtotime("tomorrow");
  6. echo date("Y-m-d h:i:sa", $d) . "<br>";
  7. $d=strtotime("next Saturday");
  8. echo date("Y-m-d h:i:sa", $d) . "<br>";
  9. $d=strtotime("+3 Months");
  10. echo date("Y-m-d h:i:sa", $d) . "<br>";
  11. ?>
  12. </body>
  13. </html>

comments powered by Disqus