I want to use Intl.DateTimeFormat
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat
but with custom pattern for output. I use this method for php version of
ICU dateformat and it's work well.
$fmt = datefmt_create(
'fa_IR@calendar=persian',
Intl.DateTimeFormat doesn’t currently let you specify a custom pattern in
ICU/CLDR format. The reason is that the API had to be implemented on top of
different existing internationalization APIs, and the API on Windows didn’t
support CLDR date format patterns.
There is a feature request for
2 matches
Mail list logo