private function getDateTimeFormatter()
    {
        if ($this->dateTimeFormatter) {
            return $this->dateTimeFormatter;
        }

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

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

@return IntlDateFormatter
Returns the date time formatter .