date minus 30 days php code example
Example 1: php date plus days
<?php
// PHP program to add days to $Date
// Declare a date
$date = "2019-05-10";
// Add days to date and display it
echo date('Y-m-d', strtotime($date. ' + 10 days'));
?>
Example 2: php date + 30 days
echo date('d/m/Y',strtotime('+30 days',strtotime(str_replace('/', '-', '05/06/2016')))) . PHP_EOL;
Example 3: remove 1 day from date in php
print('Next Date ' . date('Y-m-d', strtotime('-1 day', strtotime($date_raw))));