date-fns
Advanced tools
Changelog
[0.16.0] - 2015-09-01
Use parse
to clean date arguments in all functions.
parse
now fallbacks to new Date
when the argument
is not an ISO formatted date.
Internal: reuse getDaysInMonth
inside of setMonth
.
addQuarters
addWeeks
endOfQuarter
getDate
getDay
getDaysInMonth
getHours
getISOWeeksInYear
getMilliseconds
getMinutes
getMonth
getSeconds
getYear
isLeapYear
isSameHour
isSameMinute
isSameQuarter
isSameSecond
lastDayOfQuarter
lastDayOfWeek
max
min
setDate
setDay
setHours
setMilliseconds
setMinutes
setSeconds
startOfQuarter
subQuarters
subWeeks
Changelog
[0.15.0] - 2015-08-26
format
now returns a.m.
/p.m.
instead of am
/pm
.
setMonth
now sets last day of month if original date was last day
of longer month.
Internal: Fix code style according to ESLint.
Internal: Make tests run through all time zones.
getQuarter
setQuarter
getDayOfYear
setDayOfYear
isPast
addSeconds
subSeconds
startOfSecond
endOfSecond
startOfMinute
endOfMinute
addMilliseconds
subMilliseconds
endOfYear
addYears
subYears
lastDayOfYear
lastDayOfMonth
Changelog
[0.14.11] - 2015-08-21
format
now uses parse
to avoid time zone bugs.setIsoWeek
now sets time to the start of the day.Changelog
[0.14.8] - 2014-12-25
format
function now behaves correctly with pm
/am
.Changelog
[0.13.0] - 2014-10-22
addMinutes
subMinutes
isEqual
isBefore
isAfter
Changelog
[0.12.1] - 2014-10-19
DDD
formatter.