- date: documentation ( source)
- strtotime: documentation ( source)
<?php
$filters['date']['to'] = strtotime("-1 day",gmtime());
$filters['date']['from'] = strtotime("-7 day",gmtime());
echo date('r',$filters['date']['to']);