re: Formatting dates with JavaScript VIEW POST

TOP OF THREAD FULL DISCUSSION
re: I code some tests for this article: repl.it/repls/WhirlwindRigidMemory... I found toLocaleString() method has some effect. e.g. the test not passed...
 

Had a second look, seems it's the timeZone that you added that's making the tests pass. I plan on covering timezones in a future article - maybe in the next article about manipulating dates, or maybe I'll save it for its own article since time zones in the browser can be such a headache.

code of conduct - report abuse