We’re excited to announce Bit’s new home at bit.dev!Learn more

date-fns

LICENSE
MIT
VISIBILITY
Public
Like
1 collaborator
isValid(new Date(2014, 1, 31));
date-fns /
is-valid
v2.0.0
Returns false if argument is Invalid Date and true otherwise...
Build: Pass
public
mit
isDate(new Date());
date-fns /
is-date
v2.0.0
Returns true if the given value is an instance of Date. The ...
Build: Fail
public
mit
getWeekYear( new Date(2004, 11, 26), { weekStartsOn: 6 }
date-fns /
get-week-year
v2.0.0
Get the local week-numbering year of the given date.
Build: Pass
public
mit
formatDistanceStrict( new Date(2015, 0, 1), new Date(2016, 0, 1), { addSuffix: true }
date-fns /
format-distance-strict
v2.0.0
Return the distance between the given dates in words, using ...
Build: Pass
public
mit
setYear(new Date(2014, 8, 1), 2013);
date-fns /
set-year
v2.0.0
Set the year to the given date.
Build: Pass
public
mit
setDate(new Date(2014, 8, 1), 30);
date-fns /
set-date
v2.0.0
Set the day of the month to the given date.
Build: Pass
public
mit
setDayOfYear( new Date(2014, 6, 2), 2
date-fns /
set-day-of-year
v2.0.0
Set the day of the year to the given date.
Build: Pass
public
mit
startOfISOWeek( new Date(2014, 8, 2, 11, 55, 0)
date-fns /
start-of-iso-week
v2.0.0
Return the start of an ISO week for the given date.
Build: Pass
public
mit
isSameQuarter( new Date(2014, 0, 1), new Date(2014, 2, 8)
date-fns /
is-same-quarter
v2.0.0
Are the given dates in the same year quarter?
Build: Pass
public
mit
addMilliseconds( new Date( 2014, 6, 10, 12, 45, 30, 0 ), 750
date-fns /
add-milliseconds
v2.0.0
Add the specified number of milliseconds to the given date.
Build: Pass
public
mit
getHours( new Date(2012, 1, 29, 11, 45)
date-fns /
get-hours
v2.0.0
Get the hours of the given date.
Build: Pass
public
mit
isFirstDayOfMonth( new Date(2014, 8, 1)
date-fns /
is-first-day-of-month
v2.0.0
Is the given date the first day of a month?
Build: Pass
public
mit
endOfYear( new Date(2014, 8, 2, 11, 55)
date-fns /
end-of-year
v2.0.0
Return the end of a year for the given date.
Build: Pass
public
mit
endOfWeek( new Date(2014, 8, 2, 11, 55, 0)
date-fns /
end-of-week
v2.0.0
Return the end of a week for the given date.
Build: Pass
public
mit