SyntaxFix
Write A Post
Hire A Developer
Questions
gmdate() is doing exactly what you asked for.
gmdate()
Look at formats here: http://php.net/manual/en/function.gmdate.php