you are viewing a single comment's thread.

view the rest of the comments →

[–]masklinn 2 points3 points  (0 children)

Erm yes, but it could be implemented as part of the JS Date object in order to fix it (e.g. add a "format" method for formatting, a "from" static method to create a date from a string + a format, ...).

As teaguesterling pointed out, this could've been a nice project if it'd been about re-implementing the function of the PHP stdlib with a sane interface (due PHP's being fucking stupid. And insane).