Package
date-fns
Collection of standalone functions for working with native JavaScript Date objects.
v4.4.0, 29 May 2026MITESM + CommonJSTypes: BundledRuns in: Browser, Node.jsDate and timeUtility libraries
Key numbers
As of 25 Sept 2026
- Weekly downloads
- 72.4m
- +129% over 12 months
- Gzip bundle size
- -
- No Bundlephobia data
- Dependencies
- 0
- Direct, from package.json
- Last release
- 3 months ago
- v4.4.0
- GitHub stars
- 36.6k
- 2k forks
- Open issues / PRs
- 665 / 353
- Contributors
- 431
- Commits, last 52 weeks
- 316
Downloads
Last week 2026-09-15 to 2026-09-21
72,360,904 downloads last week, 334,516,886 in the last month. The 12-month change of +129% compares the average of the last 4 weeks with the first 4 weeks of the series.
- Releases, last 12 months
- 4137 in total
- Latest version
- 4.4.0, 29 May 20263 months ago
- First published
- 6 Oct 2014
- Last push to GitHub
- 22 Sept 20262 days before the snapshot
- Repository archived
- No
- Open issues
- 665
- Open pull requests
- 353
- Commits, last 52 weeks
- 316
- Dependents on npm
- 27,051
Major versions
- v4 first release 4.0.0, 16 Sept 2024
- v3 first release 3.0.0, 18 Dec 2023
- v2 first release 2.0.0, 20 Aug 2019
- v1 first release 1.0.0, 18 May 2016
- v0 first release 0.1.0, 6 Oct 2014
Recent releases
| Version | Published |
|---|---|
| 4.4.0 | 29 May 2026 |
| 4.3.0 | 22 May 2026 |
| 4.2.1 | 18 May 2026 |
| 4.2.0 | 18 May 2026 |
| 4.1.0 | 17 Sept 2024 |
| 4.0.0 | 16 Sept 2024 |
| 3.6.0 | 18 Mar 2024 |
| 3.5.0 | 15 Mar 2024 |
| 3.4.0 | 11 Mar 2024 |
| 3.3.1 | 22 Jan 2024 |
| 3.3.0 | 20 Jan 2024 |
| 3.2.0 | 9 Jan 2024 |
| 3.1.0 | 5 Jan 2024 |
| 3.0.6 | 22 Dec 2023 |
- Module format
- ESM + CommonJSFrom package.json type, main and exports fields
- TypeScript types
- Bundled
- Node.js engine range
- Not declared
- Runtimes
- Browser, Node.jsFrom the package docs
- Unpacked size (npm)
- 10.4 MB
- Dependencies (0)
- None
npm install date-fnsCDN
jsDelivr: 68.6m requests in 30 days
- jsDelivr
https://cdn.jsdelivr.net/npm/date-fns@4.4.0/ - unpkg
https://unpkg.com/date-fns@4.4.0/ - esm.sh
https://esm.sh/date-fns@4.4.0
| Package | Weekly downloads | Gzip | Last release | Module | Comparison |
|---|---|---|---|---|---|
| dayjs | 51.5m | - | 1 month ago | CommonJS | date-fns vs dayjs |
| luxon | 27.4m | - | 1 year ago | ESM + CommonJS | date-fns vs luxon |
| moment | 26.5m | - | 10 days ago | CommonJS | date-fns vs moment |
| time-stamp | 2.5m | - | 7 years ago | CommonJS | - |
- 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.
Related
Indexability: Indexed.