native-date
v1.0.15
Published
Some important Native JS Date methods
Downloads
2
Maintainers
Readme
Native Date
Some common methods to calculate and formatting date.
is_date(date)
Check the date is valid
return boolean
is_leap_year(date)
Check the year is leap year
return boolean
last_date(date, format)
Last date of the month
return date
is_leap_year(date)
Check the year is leap year
return boolean
add(date, number, category, type)
Add [number] of date or month depend on category to the date
return date
sub(date, number)
Substruct [number] of date or month depend on category to the date
return date
diff(date1, date2)
_Difference of between date1 and date2 in days
return date
format(date)
Format the date to YYYY-MM-DD
return date