re: Formatting dates with JavaScript VIEW POST

FULL DISCUSSION
 

Many times I started projects without dates libraries dependencies. Formatting a date as described in your article is fine without a library. But when it comes to manipulating with dates like adding, subtracting, calculating duration - libraries are a real timesaver.
Thanks for your article, we really should keep in mind that date formatting can be done without serving users bunch of unnecessary JS. But I think that if you know from the start that your project will heavily use date calculations, then npm install a date library without a doubt.

 

It's funny you should say that, because my next article was going to be about manipulating dates without a library 😉

 

Oh, I'll definitely take a look at your next article to check how you manipulate with dates with vanilla javascript.

code of conduct - report abuse