date-fns v2.17.0 Release Notes
Release Date: 2020-10-27 // over 3 years ago-
Kudos to @shaykav, @davidgape89, @rikkalo, @tan75, @talgautb, @owenl131, @kylesezhi, @inigoiparragirre, @gius, @Endeauvirr and @frankyston.
๐ Fixed
๐ Fixed
differenceInMonths
for edge cases, such as the end of February dates.๐ Fixed
formatDuration
week translation inpt
andpt-BR
locales.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.
๐ Fixed the week's abbreviations in the Brazilian Portuguese.
โ Added
0๏ธโฃ Added
intlFormat
a 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
aaa
andbbb
tokens.