Intl.DateTimeFormat custom pattern output

2015-08-16 Thread Muhammad Hussein Fattahizadeh
​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',

Re: Intl.DateTimeFormat custom pattern output

2015-08-16 Thread Norbert Lindenberg
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