SyntaxFix
Write A Post
Hire A Developer
Questions
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";