Obtener la fecha actual GMT

Código PHP

PHP – Date – Fecha actual GMT

Función que devuelve un string con la fecha del día actual GMT (Greenwich Mean Time) en formato yyyy-mm-dd.

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
/**
* Class HelperDate
*/
abstract class HelperDate
{
/***
* Devuelve el dia actual GMT formato yyyy-mm-dd
* @return string
*/
public static function getTodayGMT()
{
return gmdate('Y-m-d');
}
}
/** * Class HelperDate */ abstract class HelperDate { /*** * Devuelve el dia actual GMT formato yyyy-mm-dd * @return string */ public static function getTodayGMT() { return gmdate('Y-m-d'); } }
/**
 * Class HelperDate
 */
abstract class HelperDate
{
    /***
     * Devuelve el dia actual GMT formato yyyy-mm-dd
     * @return string
     */
    public static function getTodayGMT()
    {
        return gmdate('Y-m-d');
    }

}