date-fns
4.4.0 · 29 May 2026MIT126.2M / weekRepositorynpmAtom feed
2.30.0 is the newest release of 2.x.
In short
4 new9 fixed
Release note
Kudos to @shaykav, @davidgape89, @rikkalo, @tan75, @talgautb, @owenl131, @kylesezhi, @inigoiparragirre, @gius, @Endeauvirr and @frankyston.
Fixed
Fixed
differenceInMonthsfor edge cases, such as the end of February dates.Fixed
formatDurationweek translation inptandpt-BRlocales.Made Japanese locale to use the correct value for the start of the week.
Fixed the short and medium date formats in the Czech locale.
Added
Added
intlFormata lightweight formatting function that uses Intl API. Eventually, it will become the default formatting function, so it's highly recommended for new code.Added an ability to format lowercase am/pm with
aaaandbbbtokens.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.