1.0.15 • Published 2 years ago

native-date v1.0.15

Weekly downloads
-
License
MIT
Repository
github
Last release
2 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

2 years ago

1.0.14

2 years ago

1.0.13

2 years ago

1.0.12

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.1

2 years ago

1.1.0

2 years ago

1.0.0

2 years ago