public static function createFromFormat($format, $date, $tz = null) {
        
        if ($tz !== null) {
            $tz = static::safeCreateDateTimeZone($tz);
        }
        
        $instance = new static($tz);
        
        $instance->parseFormat($format, $date);
        
        return $instance;
    }
public static function createFromFormat($format, $date, $tz = null) {
        
        if ($tz !== null) {
            $tz = static::safeCreateDateTimeZone($tz);
        }
        
        $instance = new static($tz);
        
        $instance->parseFormat($format, $date);
        
        return $instance;
    }
public static function createFromFormat ( $ format , $ date , $ tz = null ) { if ( $ tz !== null ) { $ tz = static :: safeCreateDateTimeZone ( $ tz ) ; } $ instance = new static ( $ tz ) ; $ instance -> parseFormat ( $ format , $ date ) ; return $ instance ; }
Create a JDate instance from a specific format

@param string                   $format
@param string                   $date
@param DateTimeZone|string|null $tz

@return static
Create a JDate instance from a specific format