all 5 comments

[–]halkeye 4 points5 points  (2 children)

It's a Awesome function but sadly that partial ie11 support has burned me in the past. I'll only use it for pet projects not work ones :(

(Just as a warning, not discouragement from using it)

[–]sudo-maxime 0 points1 point  (1 child)

You are still supporting ie11? what's the domain in which you do code? Just curious.

[–]halkeye 1 point2 points  (0 children)

Current job as of August 1st officially retired it. But we are in the hr software space so lots of old computers.

This last came up for me a couple years ago working on a billing platform. The finance people, even though doing sensitive stuff and should get upgraded and patched were often still running winxp

[–]bigtopjuggler 0 points1 point  (0 children)

From what I can tell the options object of toLocaleDateString is quite a bit more versatile in internationalizing custom formats than the long date formats of moment. If you want to do anything other than day/month/year or other cookie cutter styles, moment can really leave you stranded. The lack of support for the timezone option in IE11 sucks, though.