how to get date of yesterday using php?
there you go
date('d.m.Y',strtotime("-1 days"));
this will work also if month change
try this
$tz = new DateTimeZone('Your Time Zone');
$date = new DateTime($today,$tz);
$interval = new DateInterval('P1D');
$date->sub($interval);
echo $date->format('d.m.y');
?>