NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm, #3060 most downloaded on npm
Modern JavaScript date utility library for jalali calendar
Latest stable
4.4.0
Last release 7 days ago
20 Nov 2026
Release timing varies
gaps range from 9 days to 1.7 years
Nearly every release is documented
notes for 1 of 1 stable releases
Nothing withdrawn
no release was ever pulled
6 years old
59 releases · first in 2020
Drag across the ruler to compare, or tap a release to open it.
It allowed reducing the zipped package size from 5.83 MB down to 3.96 MB without introducing any breaking changes.
This release revisits the approach to CDN usage and introduces a new package, @date-fns/cdn and deprecates the date-fns CDN scripts. It allowed reducing the zipped package size from 5.83 MB down to 3.96 MB without introducing any breaking changes.
In v5.0.0-alpha.0 where CDN scripts are completely removed from date-fns the change is more significant and brings the zipped package size down to 2.89 MB.
It is just the first step in optimizing the package size. Expect further size reduction in the future v4 and v5 versions.
DEPRECATED: The date-fns CDN scripts are now deprecated and will be removed in the next major release. Please switch to the new @date-fns/cdn package for CDN usage.
Removed CDN source maps to reduce the package size. If you rely on them, please switch to the new @date-fns/cdn package that still includes them.
Fixed package exports pointing to missing source files, restoring ESM import and CommonJS require support.
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Fixed package exports pointing to missing source files, restoring ESM import and CommonJS require support.
Persian date parsing: The fa-IR locale now accepts Persian weekday names with or without spaces or half-spaces. for example, یکشنبه, یکشنبه, and یک ش
fa-IR locale now accepts Persian weekday names with or without spaces or half-spaces. for example, یکشنبه, یکشنبه, and یک شنبه.PPPP.Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
see the complete change log in [date-fns release][release]
rebase to date-fns v4.1.0
see the complete change log in date-fns release
Change weekend and Business days logic. Now only friday is a weekend day
rebase to date-fns v4.0.0
Change weekend and Business days logic. Now only friday is a weekend day
see the complete change log in date-fns release
add missing minified cdn files (e.g. cdn.min.js)
window.dateFnsJalali instead of window.dateFnssee the complete change log in [date-fns release][release]
rebase to date-fns v3.6.0
see the complete change log in date-fns release
see the complete change log in [date-fns release][release]
rebase to date-fns v3.5.0
see the complete change log in date-fns release
see the complete change log in [date-fns release][release]
rebase to date-fns v3.4.0
see the complete change log in date-fns release
see the complete change log in [date-fns release][release]
rebase to date-fns v3.3.1
see the complete change log in date-fns release
see the complete change log in [date-fns release][release]
rebase to date-fns v3.3.0
see the complete change log in date-fns release
see the complete change log in [date-fns release][release]
rebase to date-fns v3.2.0
see the complete change log in date-fns release
see the complete change log in [date-fns release][release]
rebase to date-fns v3.1.0
see the complete change log in date-fns release
see the complete change log in [date-fns release][release]
rebase to date-fns v3.0.6
see the complete change log in date-fns release
see the complete change log in [date-fns release][release]
rebase to date-fns v3.0.5
see the complete change log in date-fns release
see the complete change log in [date-fns release][release]
rebase to date-fns 3.0.4
see the complete change log in date-fns release
see the complete change log in [date-fns release][release]
rebase to date-fns 3.0.3
see the complete change log in date-fns release
see the complete change log in [date-fns release][release]
rebase to date-fns 3.0.2
see the complete change log in date-fns release
see the complete change log in [date-fns release][release]
rebase to date-fns 3.0.1
see the complete change log in date-fns release
see the complete change log in [date-fns release][release]
rebase to date-fns 3.0.0
see the complete change log in date-fns release
Use the Intl algorithm for Jalali logic, which is simpler and faster. It is consistent for larger duration and identical to the old algorithm between 1178 and 1633.
see the complete change log in [date-fns release][release]
rebase to date-fns 2.30.0
see the complete change log in date-fns release
see complete change log in [date-fns release][release]
rebase to date-fns 2.29.3
see complete change log in date-fns release
see complete change log in [date-fns release][release]
rebase to date-fns 2.29.2
see complete change log in date-fns release
see complete change log in [date-fns release][release]
rebase to date-fns 2.29.1
see complete change log in date-fns release
see complete change log in [date-fns release][release]
rebase to date-fns 2.29.0
see complete change log in date-fns release
- remove global types (fix #64)
see complete change log in [date-fns release][release]
rebase to date-fns 2.28.0
see complete change log in date-fns release
see complete change log in [date-fns release][release]
rebase to date-fns 2.27.0
see complete change log in date-fns release
see complete change log in [date-fns release][release]
rebase to date-fns 2.26.0
see complete change log in date-fns release
see complete change log in [date-fns release][release]
rebase to date-fns 2.25.0
see complete change log in date-fns release
see complete change log in [date-fns release][release]
rebase to date-fns 2.24.0
see complete change log in date-fns release
see complete change log in [date-fns release][release]
rebase to date-fns 2.23.0
see complete change log in date-fns release
see complete change log in [date-fns release][release]
rebase to date-fns 2.22.1
see complete change log in date-fns release
see complete change log in [date-fns release][release]
rebase to date-fns 2.22.0
see complete change log in date-fns release
Nothing published for this version
see complete change log in [date-fns release][release]
see complete change log in date-fns release
see complete change log in [date-fns release][release]
rebase to date-fns 2.21.2
see complete change log in date-fns release
see complete change log in [date-fns release][release]
rebase to date-fns 2.21.1
see complete change log in date-fns release
see complete change log in [date-fns release][release]
rebase to date-fns 2.21.0
see complete change log in date-fns release
see complete change log in [date-fns release][release]
rebase to date-fns 2.20.3
see complete change log in date-fns release
see complete change log in [date-fns release][release]
rebase to date-fns 2.20.2
see complete change log in date-fns release
Nothing published for this version
see complete change log in [date-fns release][release]
rebase to date-fns 2.20.1
see complete change log in date-fns release
see complete change log in [date-fns release][release]
rebase to date-fns 2.20.0
see complete change log in date-fns release
fa-IR and en-US locales using Jalali calendar names
fa-IR and en-US locales using Jalali calendar namesfa-jalali-IR existed for backward compatibility, but please use the fa-IR locale instead.Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
see complete change log in [date-fns release][release]
rebase to date-fns 2.21.3
see complete change log in date-fns release
One column per quarter.