Skip to main content
date-fns logo
Package

date-fns

Verified Sep 2026

Modern JavaScript date utility library

Immutable, tree-shakeable date functions: the functional alternative to moment.js.

Sasha Koss's functional date library: 200+ immutable, tree-shakeable functions instead of a moment-sized object. The modern default for dates in JS.

Who it's for

JavaScript developers who want modular, immutable date utilities they can tree-shake.

Keep exploring

1 in catalog

date-fns is written in

1 in catalog

date-fns has a pricing