Add or Subtract Days from Date
Copy this code and paste it in your HTML
<?
echo 'Three days from now is: ' . date('m-d-Y', strtotime('+3 days')) . '<br />'; echo 'Next Wednesday is: ' . date('m-d-Y', strtotime('next wednesday')) . '<br />'; echo 'Three Saturdays ago was: ' . date('m-d-Y', strtotime('-3 weeks saturday')) . '<br />'; ?>
Report this snippet
Comments
Subscribe to comments