1.0.15 • Published 3 years ago

native-date v1.0.15

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

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

1.0.15

3 years ago

1.0.14

3 years ago

1.0.13

3 years ago

1.0.12

3 years ago

1.0.11

3 years ago

1.0.10

3 years ago

1.0.1

3 years ago

1.1.0

3 years ago

1.0.0

3 years ago