- date: documentation ( source)
- strtotime: documentation ( source)
<?php
$date = date('Y-m-d', strtotime('-29 days'));
$today = date("Y-m-d");
$from_date = date ("Y-m-d", strtotime("-29 day", strtotime($date)));
echo "date [$date] today[$today] from_date[$from_date]".PHP_EOL;