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

LOCATION
Spacetime
subject
Modern JavaScript date utility library
2 Members
Labels
Clear
Labels
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
Component types
Internal
Deprecated
Clear
Done
Date
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
4 KB
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
1 KB
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, {
  weekStartsOn: 1,
  firstWeekContainsDate: 4
});
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
Number
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
1 KB
setWeek(new Date(2005, 0, 2), 1, {
  weekStartsOn: 1,
  firstWeekContainsDate: 4
});
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
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
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
differenceInCalendarMonths(
  new Date(2014, 8, 1),
  new Date(2014, 0, 31)
date-fns /
difference-in-calendar-months
v2.0.0
Get the number of calendar months between the given dates.
Build: Pass
public
mit
928 B
addSeconds(
  new Date(2014, 6, 10, 12, 45, 0),
  30
date-fns /
add-seconds
v2.0.0
Add the specified number of seconds to the given date.
Build: Pass
public
mit
1015 B
addYears(new Date(2014, 8, 1), 5);
date-fns /
add-years
v2.0.0
Add the specified number of years to the given date.
Build: Pass
public
mit
1 KB
addWeeks(new Date(2014, 8, 1), 4);
date-fns /
add-weeks
v2.0.0
Add the specified number of week to the given date.
Build: Pass
public
mit
1020 B
startOfWeekYear(
  new Date(2005, 6, 2)
date-fns /
start-of-week-year
v2.0.0
Return the start of a local week-numbering year.
Build: Pass
public
mit
1 KB