SyntaxFix
Write A Post
Hire A Developer
Questions
Check out the manual: http://www.php.net/manual/en/datetime.format.php
<?php $date = new DateTime('2000-01-01'); echo $date->format('Y-m-d H:i:s'); ?>
Will output: 2000-01-01 00:00:00
2000-01-01 00:00:00