Pinned: see a brief comparison with Moment.js.
dateFns//=> '02/11/2014'var dates = 1995 6 2 1987 1 11 1989 6 10dates//=> [// Wed Feb 11 1987 00:00:00,// Mon Jul 10 1989 00:00:00,// Sun Jul 02 1995 00:00:00// ]
The library is available as an npm package, a Bower package. To install a package run:
npm install date-fns --save# or with yarnyarn add date-fns# or with bowerbower install date-fns
Also, you can simply download the library from the releases page.
See date-fns.org for more details, API, and other docs.