"; echo "yesterday: " . $yesterday . ""; echo $today-$yesterday; echo ""; $test = date('Ymd', $today-$yesterday); echo $test;