- date: documentation ( source)
- strtotime: documentation ( source)
<?php
$date_day_start = date('Y-m-d', strtotime($date_requested . "-1 day"));
$date_month_start = date("Y-m-t", strtotime($date_requested . "-1 month"));
$date_year_start = date("Y-01-01", strtotime($date_requested));
$date_end = date('Y-m-d', strtotime($date_requested . "+1 day"));
echo "periods: $date_day_start - $date_end | $date_month_start | $date_year_start";