Consider date formatting
isiahmeadows at gmail.com
Thu Sep 21 13:14:44 UTC 2017
I wouldn't quite call Moment and similar "de facto standards", especially
not to the degree of something like Underscore/Lodash or Promises/A+
(especially Bluebird), which resulted in numerous obvious additions to the
spec - ES5 function and array methods are nearly a clone of those in
Underscore, and ES6 promises are a mix of RSVP.js and Bluebird (with
implementations initially adapted from the latter). Async functions came
after promise users immediately jumped all over `co` and later, Bluebird's
`Promise.fromCoroutine`, in both Node and the browser.
As for existing work on dates (we all know they're broken), check out this
proposal, currently stage 1: https://github.com/tc39/proposal-temporal. (It
currently has no date parsing facilities, but ISO 8601 support is being
On Thu, Sep 21, 2017, 03:17 Michael Kriegel <michael.kriegel at actifsource.com>
> Quoting my initial posting:
> > I know there are libraries for that, but I think it is fundamental
> enough to put it into the standard instead.
> Isn't it legitimate to ask for a defacto-standard to become a real
> On 21.09.2017 09:13, Bob Myers wrote:
> There are third-party libraries which are so widely-used as to be defacto
> On Thu, Sep 21, 2017 at 12:11 PM, Michael Kriegel <
> michael.kriegel at actifsource.com> wrote:
>> I would like to suggest to take up date formatting into the standard.
>> Either as optional format parameter on Date.prototype.toDateString() or as
>> a separate method Date.prototype.toFormattedDateString(format).
>> format should be a string in the form as specified in
>> I know there are libraries for that, but I think it is fundamental enough
>> to put it into the standard instead.
>> I hope this was not already discussed before and I just did not find the
>> Michael Kriegel • Head of R&D • Actifsource AG • Haldenstrasse 1 •
>> CH-6340 Baar • www.actifsource.com • +41 56 250 40 02
>> es-discuss mailing list
>> es-discuss at mozilla.org
> Michael Kriegel • Head of R&D • Actifsource AG • Haldenstrasse 1 • CH-6340 Baar • www.actifsource.com • +41 56 250 40 02
> es-discuss mailing list
> es-discuss at mozilla.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the es-discuss