I'm slowly moving all my sites from PHP 7.4 to PHP 8.1 and one of the issues I'm facing is this piece of code:
setlocale(LC_TIME, array('nl_NL.UTF-8', 'nl_NL@euro', 'nl_NL', 'dutch'));
echo ucfirst(strftime('%B', mktime(0, 0, 0, 1, 1, 2022)));
I found the following, but how get it to show only the month?
$formatter = new IntlDateFormatter('nl_NL', IntlDateFormatter::LONG, IntlDateFormatter::NONE);
echo $formatter->format(time());