I want to get the current date in yyyy-mm-dd hh:mm:ss format.
I have tried:
gmdate(\'yyyy-mm-dd hh:mm:ss \\G\\M\\T\', time());
Its retur
Try this
Check this How do i get the gmt time in php
date_default_timezone_set("UTC"); echo date("Y-m-d H:i:s", time());