Damian Wasielewski


Dates with date-fns

Dates with date-fns

Damian Wasielewski's photo
Damian Wasielewski
·Aug 18, 2021·

1 min read


Why date-fns?

  • Modular

With the function-per-file style, you can pick just what you need and stop bloating your project with useless functionality. It works well with modern module bundlers such as webpack, Browserify, and Rollup and also supports tree-shaking.

  • Fast

In addition to tiny size, date-fns is fast. You can be sure that your users will have the best user experience.

  • Reliable

date-fns respects time zones & DST. It follows semantic versioning so, always backward compatible. Each build CI checks more than 650 000 examples in about 400 time zones.

  • Simple

The best API is an API that doesn't exist. With date-fns you always have one function that does one thing. The API is unambiguous, and there is always a single approach to a problem.

Share this