date-fns

1 Members
Date
// For the value, convertable into a date:
date-fns /
is-valid
v2.0.0
Returns false if argument is Invalid Date and true otherwise...
Build: Pass
public
mit
// For an invalid date:
date-fns /
is-date
v2.0.0
Returns true if the given value is an instance of Date. The ...
Build: Fail
public
mit
//=> '2-a de julio 2014' new Date(2014, 6, 2), 'do 'de' MMMM yyyy', { locale: eoLocale, },
date-fns /
format
v2.0.0
Return the formatted date string in the given format. The re...
Build: Pass
public
mit
Number
// Add 30 seconds to 10 July 2014 12:45:00: 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
// Set the 53rd ISO week to 7 August 2004: new Date(2004, 7, 7), 53,
date-fns /
set-iso-week
v2.0.0
Set the ISO week to the given date, saving the weekday numbe...
Build: Pass
public
mit
// How many calendar weeks does February 2015 span? new Date(2015, 1, 8),
date-fns /
get-weeks-in-month
v2.0.0
Get the number of calendar weeks the month in the given date...
Build: Pass
public
mit
// How many days are in 2012? new Date(2012, 0, 1),
date-fns /
get-days-in-year
v2.0.0
Get the number of days in a year of the given date.
Build: Pass
public
mit
// Add 5 years to 1 September 2014: 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