php date minus 1 day code example
Example 1: php date + one day
<?php
$stop_date = '2009-09-30 20:24:00';
echo 'date before day adding: ' . $stop_date;
$stop_date = date('Y-m-d H:i:s', strtotime($stop_date . ' +1 day'));
echo 'date after adding 1 day: ' . $stop_date;
?>
Example 2: php remove 1 day from date
print('Next Date ' . date('Y-m-d', strtotime('-1 day', strtotime($date_raw))));