I want to get the yesterday date using specific date format in php this is the format:
$today = date(\"d.m.Y\"); //15.04.2013
Is it possible?>
Another OOP method for DateTime with setting the exact hour:
$yesterday = new DateTime("yesterday 09:00:59", new DateTimeZone('Europe/London')); echo $yesterday->format('Y-m-d H:i:s') . "\n";