Very convenient function strtotime
Example:
$newdate = strtotime('-3 week', strtotime($date));
Recently, there was a desire to torment her.
I want to know whether it is possible to implement something like that?
Example:
$newdate = strtotime('-3 day', '-3 week', '-3 month', '-3 year', strtotime($date));

    1 answer 1

    From official documentation echo strtotime("+1 week 2 days 4 hours 2 seconds"), "\n";