public static function getJsFormat($locale = null, $timezone = null, $date = true, $time = true, $seconds = false)
    {
        $pattern = static::getPattern($locale, $timezone, $date, $time, $seconds);

        return static::convertToJsFormat($pattern);
    }
public static function getJsFormat($locale = null, $timezone = null, $date = true, $time = true, $seconds = false)
    {
        $pattern = static::getPattern($locale, $timezone, $date, $time, $seconds);

        return static::convertToJsFormat($pattern);
    }
public static function getJsFormat ( $ locale = null , $ timezone = null , $ date = true , $ time = true , $ seconds = false ) { $ pattern = static :: getPattern ( $ locale , $ timezone , $ date , $ time , $ seconds ) ; return static :: convertToJsFormat ( $ pattern ) ; }
Get the pattern of localized datetime format for javascript.

@param string|null $locale   The locale
@param string|null $timezone The timezone
@param bool        $date     Check if the date must be displayed
@param bool        $time     Check if the time must be displayed
@param bool        $seconds  Check if the time must be displayed with seconds

@return string
Get the pattern of localized datetime format for javascript .