Skip to content
JS
Alternatives

date-fns alternatives

4 packages that do the same job as date-fns: dayjs, luxon, moment, time-stamp. Figures below are from npm, GitHub and Bundlephobia.

Data as of 25 Sept 2026
PackageWeekly downloads12-month changeGzipDependenciesLast releaseModuleTypesRuntimes
date-fns
This package
72.4m+129%-03 months agoESM + CommonJSBundledBrowser, Node.js
dayjs51.5m+95%-01 month agoCommonJSBundledBrowser, Node.js
luxon27.4m+99%-01 year agoESM + CommonJSNoneBrowser, Node.js
moment26.5m+22%-010 days agoCommonJSBundledBrowser, Node.js
time-stamp2.5m-1%-07 years agoCommonJSBundled-

12-month change compares the average of the last 4 weeks of downloads with the first 4 weeks of the 52-week series. Gzip size is for the whole package (Bundlephobia). Runtimes are taken from each package's own documentation; "-" means not recorded.

Date library with a largely Moment.js-compatible API, extended through plugins.

  • Immutable and chainable. The README describes the API as largely Moment.js-compatible.
  • Extra features are added through plugins loaded with dayjs.extend().
  • Time zone support comes from the utc and timezone plugins.
  • Locales are loaded on demand and are not included unless imported.

Compared with date-fns

  • 1.4x fewer weekly downloads (51.5m vs 72.4m)
  • CommonJS vs ESM + CommonJS
  • Last release 17 Aug 2026 vs 29 May 2026
  • 1.3x more GitHub stars (48.7k vs 36.6k)

Date and time library with DateTime, Duration and Interval types, built on the Intl API.

  • Uses the native Intl API for time zones and locales, so no locale or time zone data files are needed.
  • Some Intl behaviour is browser-dependent, so Luxon's output can differ on older browsers.
  • Written by one of the Moment.js maintainers and hosted under the moment GitHub organisation.

Compared with date-fns

  • 2.6x fewer weekly downloads (27.4m vs 72.4m)
  • No types vs bundled types
  • Declares Node.js >=12 vs none declared
  • Last release 5 Sept 2025 vs 29 May 2026
  • 2.2x fewer GitHub stars (16.5k vs 36.6k)

Date library for parsing, validating, manipulating and formatting dates.

  • The README says: "Moment.js is a legacy project, now in maintenance mode. New features are not being accepted."
  • The project status page says the mutable API will not be redesigned.
  • The same page says a 3.0 release is no longer ruled out, but only as a maintenance release with no schedule announced.
  • Published as CommonJS.

Compared with date-fns

  • 2.7x fewer weekly downloads (26.5m vs 72.4m)
  • CommonJS vs ESM + CommonJS
  • Declares Node.js * vs none declared
  • Last release 15 Sept 2026 vs 29 May 2026
  • 1.3x more GitHub stars (47.9k vs 36.6k)

Get a formatted timestamp.

Compared with date-fns

  • 29x fewer weekly downloads (2.5m vs 72.4m)
  • CommonJS vs ESM + CommonJS
  • Declares Node.js >=0.10.0 vs none declared
  • Last release 26 Oct 2018 vs 29 May 2026
  • 339x fewer GitHub stars (108 vs 36.6k)
Sources: npm registry, npm downloads API, GitHub API, Bundlephobia. Data fetched 25 Sept 2026.

Indexability: Indexed: 20 US searches/month for "date-fns alternatives".