Date.prototype.format

John Tamplin jat at google.com
Fri May 27 09:08:02 PDT 2011


On Fri, May 27, 2011 at 11:48 AM, Marc Harter <wavded at gmail.com> wrote:

> This may of been thrown though the ringer already but I thought I'd ask.
>
> http://blog.stevenlevithan.com/archives/date-time-format
>
> This is some awesome work on date formatting.  What do we think about
> having a native Date Format implementation in es.next?  Complications?
>  Seems like this a very commonly needed option.  Especially w/ SSJS
> now getting more popular.


See http://wiki.ecmascript.org/doku.php?id=strawman:i18n_api

Note that it is rarely useful to format with a fixed pattern, because
different locales have different norms for ordering of the fields,
separators, etc.

-- 
John A. Tamplin
Software Engineer (GWT), Google
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20110527/d6d12117/attachment.html>


More information about the es-discuss mailing list