days-in-month

get the number of days in the given month

npm install days-in-month
1 downloads in the last week
4 downloads in the last month

days-in-month

get the number of days in the given month (Gregorian calendar)

Installation

Install with component(1):

$ component install stephenmathieson/days-in-month

Install with npm:

$ npm install days-in-month

API

days(date)

get the number of days in the month of the provided date

days(month)

get the number of days in the provided month; assumes current year

days(year, month)

get the number of days in the provided year/month pair

License

MIT

npm loves you