How to format date with a IntlDateFormatter using MEDIUM or FULL datetype, but without a year?
问题 First of all: I know that I can manually create a bunch of config files with corresponding patterns for every locale; actually I try to find a workaround with using only IntlDateFormatter. I'll try to explain with examples. <?php $tz = new DateTimeZone('Europe/Moscow'); $now = time(); foreach (['en_US', 'ja_JA', 'ru_RU'] as $locale) { printf("%s:\n", $locale); foreach ([IntlDateFormatter::MEDIUM, IntlDateFormatter::LONG] as $datetype) { $formatter = new IntlDateFormatter($locale, $datetype,