I have this working code that gets the last 30 days.
<?php
echo date('Y-m-d').' - '.date('Y-m-d', strtotime('today - 30 days'));
?>
I wanted to also to make it more dynamic such as:
`date('Y-m-d', strtotime('from today to 3 months'));`
`date('Y-m-d', strtotime('from today to 7 weeks'));`
`date('Y-m-d', strtotime('from today to 2 years'));`