question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support date format skeleton

See original GitHub issue

Hi 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:closed
  • Created 4 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
superCartoncommented, Apr 19, 2019

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 😉

0reactions
eemelicommented, Apr 16, 2020

Date skeleton support was added in #279.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found