Symfony\Component\Form\ValueTransformer\DateTimeToLocalizedStringTransformer::getIntlDateFormatter PHP Method

getIntlDateFormatter() protected method

Returns a preconfigured IntlDateFormatter instance
protected getIntlDateFormatter ( ) : IntlDateFormatter
return IntlDateFormatter
    protected function getIntlDateFormatter()
    {
        $dateFormat = $this->getIntlFormatConstant($this->getOption('date_format'));
        $timeFormat = $this->getIntlFormatConstant($this->getOption('time_format'));
        $timezone = $this->getOption('output_timezone');

        return new \IntlDateFormatter($this->locale, $dateFormat, $timeFormat, $timezone);
    }