Start sharing components as a team!Share components as a team!Join Bit to build your applications faster.Get Started Free
Thank you for subscribing to theplan!

date-fns

LICENSE
MIT
VISIBILITY
Public
subject⏳ Modern JavaScript date utility library ⌛️
1 collaborator
Labels
Clear
Labels
Done
No visible options
Clear
Done
Namespaces
Clear
Namespaces
Done
No visible options
Clear
Done
Dependencies
Clear
Dependencies
Done
No visible options
Clear
Done
No size data available
Size
Clear
Size
Done
Choose size range
?
Component bundled with dependencies, minified and gzip'ed
0 B
50 KB +
Component bundled with dependencies,minified and gzip'ed
Clear
Done
More options
Clear
More options
Done
Component features
Tests
Usage examples
Visual rendering
Clear
Done
formatDistance(
  new Date(2014, 6, 2),
  new Date(2015, 0, 1)
date-fns /
format-distance
v2.0.0
Return the distance between the given dates in words.
Build: Pass
public
mit
4 KB
getWeekYear(new Date(2004, 11, 26));
date-fns /
get-week-year
v2.0.0
Get the local week-numbering year of the given date.
Build: Pass
public
mit
1 KB
isValid("2014-02-31");
date-fns /
is-valid
v2.0.0
Returns false if argument is Invalid Date and true otherwise...
Build: Pass
public
mit
885 B
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
988 B
setWeek(new Date(2005, 0, 2), 1);
date-fns /
set-week
v2.0.0
Set the local week to the given date, saving the weekday num...
Build: Pass
public
mit
1 KB
isMonday(new Date(2014, 8, 22));
date-fns /
is-monday
v2.0.0
Is the given date Monday?
Build: Pass
public
mit
887 B
lastDayOfISOWeekYear(
  new Date(2005, 6, 2)
date-fns /
last-day-of-iso-week-year
v2.0.0
Return the last day of an ISO week-numbering year,
Build: Pass
public
mit
1 KB
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
885 B
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
921 B
endOfWeek(
  new Date(2014, 8, 2, 11, 55, 0),
  {
    weekStartsOn: 1
  }
date-fns /
end-of-week
v2.0.0
Return the end of a week for the given date.
Build: Pass
public
mit
1 KB
lastDayOfISOWeek(
  new Date(2014, 8, 2, 11, 55, 0)
date-fns /
last-day-of-iso-week
v2.0.0
Return the last day of an ISO week for the given date.
Build: Pass
public
mit
1 KB
differenceInISOWeekYears(
  new Date(2012, 0, 1),
  new Date(2010, 0, 1)
date-fns /
difference-in-iso-week-years
v2.0.0
Get the number of full ISO week-numbering years between the ...
Build: Pass
public
mit
2 KB
isTuesday(new Date(2014, 8, 23));
date-fns /
is-tuesday
v2.0.0
Is the given date Tuesday?
Build: Pass
public
mit
887 B
setSeconds(
  new Date(2014, 8, 1, 11, 30, 40),
  45
date-fns /
set-seconds
v2.0.0
Set the seconds to the given date.
Build: Pass
public
mit
980 B