There is a great variety of Javascript tools appearing every day. If you ever experienced a problem with JS dates, now there is a solution and we are happy to share it with you. Please meet date-fns toolset for manipulating JavaScript dates.
So, let’s try to understand how exactly this useful library works.
date-fns consists of the most comprehensive and consistent toolset with the help of which you can easily manipulate JavaScript dates in a browser & Node.js.
The library has more than 180 functions for all possible cases. It is available as an npm package. To install it you need use:
npm install date-fns --save # or with yarn yarn add date-fns
To explore more details please read this document.
We can also recommend you the Collect.js dependency-free wrapper for arrays and objects. Keep your collection of great JS libraries always updated. Or hire Syndicode for your next web project!