Skip to content
JS
Alternatives

moment alternatives

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

Data as of 25 Sept 2026
PackageWeekly downloads12-month changeGzipDependenciesLast releaseModuleTypesRuntimes
moment
This package
26.5m+22%-010 days agoCommonJSBundledBrowser, Node.js
date-fns72.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

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.

Collection of standalone functions for working with native JavaScript Date objects.

  • Functions operate on the native Date type and do not extend core objects.
  • Pure functions that always return a new date instance.
  • v4 added time zone support through the separate @date-fns/tz package, which provides TZDate.
  • Written in TypeScript. Locales are imported individually.

Compared with moment

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

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 moment

  • 1.9x more weekly downloads (51.5m vs 26.5m)
  • Declares no Node.js engine range vs Node.js *
  • Last release 17 Aug 2026 vs 15 Sept 2026
  • About the same number of GitHub stars (48.7k vs 47.9k)

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 moment

  • About the same weekly downloads (27.4m vs 26.5m)
  • ESM + CommonJS vs CommonJS
  • No types vs bundled types
  • Declares Node.js >=12 vs Node.js *
  • Last release 5 Sept 2025 vs 15 Sept 2026
  • 2.9x fewer GitHub stars (16.5k vs 47.9k)
Sources: npm registry, npm downloads API, GitHub API, Bundlephobia. Data fetched 25 Sept 2026.

Indexability: Indexed: 20 US searches/month for "moment alternatives".