OK. How do I get the previous date??
$today = date("Y-m-d"); print $today;
echo date('Y-m-d', strtotime('yesterday'));