Support date format skeleton
See original GitHub issueHi guys,
According to the documentation, messageformat is only supporting parameters short, default, long , or full
for the date. In ICU message format, there another “free” parameter, called argStyleText. It is using skeleton ::
, which allow much more flexibility for date formats.
The usage is the following ICU date:
{dateParameter, date, ::dMMMM}
Is it planned for future versions to integrate sketelons? Or would you accept contributions for it?
Cheers!
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
messageformat/date-skeleton
Returns a string of JavaScript source that evaluates to a date formatter function with the same (date: Date | number) => string signature...
Read more >What is DateFormat skeleton for this format? - Stack Overflow
Okay I got it now. Answer is DateFormat("MMM-d-yyyy | h:m a").
Read more >DateFormat class - intl library - Dart API - Pub.dev
This library uses the ICU/JDK date/time pattern specification both for complete format specifications and also the abbreviated 'skeleton' form which can also ...
Read more >Globalization in ASP.NET MVC Control | Syncfusion
Supported Format String ; yMd, {skeleton:'yMd' }, 11/7/2016 ; yMEd, {skeleton:'yMEd' }, Mon, 11/7/2016 ; yMMM, {skeleton:'yMMM' }, Nov 2016 ; yMMMd, {skeleton:' ......
Read more >ICU - Number format skeleton support
Introduce skeleton feature to number formatting, similar to what date formatters have today. The skeleton would allow user to specify:.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Good to hear that! I will work on it as my need is to be quite flexible for date formats, and I will come back to you with a PR 😉
Date skeleton support was added in #279.