jDateTime::gDate PHP Method

gDate() public static method

Same as jDateTime::Date method but this one works as a helper and returns Gregorian Date in case someone doesn't like to pass all those false arguments to Date method. e.g. $obj->gDate("Y-m-d") //Outputs: 2011-05-05 $obj->date("Y-m-d", false, false, false); //Outputs: 2011-05-05 Both return the exact same result.
Author: Sallar Kaboli
public static gDate ( $format, $stamp = false, $timezone = null ) : string
$format string Acceps format string based on: php.net/date
$stamp int Unix Timestamp (Epoch Time)
$timezone string (Optional) forces a different timezone. pass null to use system default
return string Formatted input
    public static function gDate($format, $stamp = false, $timezone = null)
    {
        return self::date($format, $stamp, false, false, $timezone);
    }