date-fns is a modular, immutable JavaScript date utility library providing functions for formatting, parsing, and manipulating dates without mutating originals.
It's lightweight and tree-shakeable.
Choose date-fns when:
Note: Use format with tokens like yyyy-MM-dd.
Pipe functions for chaining.
Bundle locales dynamically.