Are there any plans to introduce Date/Time literals?

Brendan Eich brendan at mozilla.com
Wed Oct 9 08:29:02 PDT 2013


Andrew Fedoniouk wrote:
>> http://wiki.ecmascript.org/doku.php?id=discussion:date_literal_syntax
>> >
>> >  http://wiki.ecmascript.org/doku.php?id=proposals:date_literal_syntax
>> >
>> >  https://encrypted.google.com/#q=site:https%3A%2F%2Fmail.mozilla.org%2Fpipermail%2Fes-discuss%2F+%22date+literal%22
>> >
>
> Thanks for links but what is the conclusion?

No date literals in JS. Not worth their weight, most Dates are not 
expressed as hardcoded date strings. If you need it, use an ES6 template 
string.

/be


More information about the es-discuss mailing list