SyntaxFix
Write A Post
Hire A Developer
Questions
You can try this way:
$datetime = new DateTime('2010-12-30 23:21:46'); echo $datetime->format(DATE_ATOM);