private function getDateFormatter()
    {
        if ($this->dateFormatter) {
            return $this->dateFormatter;
        }

        return $this->dateFormatter = IntlDateFormatter::create(
            $this->locale,
            IntlDateFormatter::SHORT,
            IntlDateFormatter::NONE,
            ini_get('date.timezone'),
            //PHP_VERSION_ID >= 50500 ? $date->getTimezone() : $date->getTimezone()->getName(),
            IntlDateFormatter::GREGORIAN
        );
    }
private function getDateFormatter()
    {
        if ($this->dateFormatter) {
            return $this->dateFormatter;
        }

        return $this->dateFormatter = IntlDateFormatter::create(
            $this->locale,
            IntlDateFormatter::SHORT,
            IntlDateFormatter::NONE,
            ini_get('date.timezone'),
            //PHP_VERSION_ID >= 50500 ? $date->getTimezone() : $date->getTimezone()->getName(),
            IntlDateFormatter::GREGORIAN
        );
    }
private function getDateFormatter ( ) { if ( $ this -> dateFormatter ) { return $ this -> dateFormatter ; } return $ this -> dateFormatter = IntlDateFormatter :: create ( $ this -> locale , IntlDateFormatter :: SHORT , IntlDateFormatter :: NONE , ini_get ( 'date.timezone' ) , //PHP_VERSION_ID >= 50500 ? $date->getTimezone() : $date->getTimezone()->getName(), IntlDateFormatter :: GREGORIAN ) ; }
Returns the date formatter.

@return IntlDateFormatter
Returns the date formatter .