Sage 10: new IntlDateFormatter

There is a case to format custom data by IntlDateFormatter like:
$fmt = new \IntlDateFormatter(‘it_IT’, NULL, NULL);
$fmt->setPattern(‘d MMMM yyyy HH:mm’);
echo $fmt->format(new \DateTime());

Class ‘IntlDateFormatter’ not found

How to properly add IntlDateFormatter extension to setup of project?

This class is provided by the PHP intl extension. Is it installed and enabled?

This topic was automatically closed after 42 days. New replies are no longer allowed.