calendar-month
node
npm i calendar-month --save
bower
bower i calendar-month --save
Examples
var Month = ;// startDay to set Monday as first week dayMonth;// months from 0 (january) ... to 11 (december)2017 5;
returns:
Monthmeta:date: '2017-06-01T00:00:00.000Z'last_day: 31last_week_day: 3week_day: 4month_last_day: '2017-06-30T00:00:00.000Z'year: 2017month: 5days:date: 29 month: 4 year: 2017 previous: truedate: 30 month: 4 year: 2017 previous: truedate: 31 month: 4 year: 2017 previous: truedate: 1 month: 5 year: 2017 current: truedate: 2 month: 5 year: 2017 current: truedate: 3 month: 5 year: 2017 current: truedate: 4 month: 5 year: 2017 current: truedate: 5 month: 5 year: 2017 current: truedate: 6 month: 5 year: 2017 current: truedate: 7 month: 5 year: 2017 current: truedate: 8 month: 5 year: 2017 current: truedate: 9 month: 5 year: 2017 current: truedate: 10 month: 5 year: 2017 current: truedate: 11 month: 5 year: 2017 current: truedate: 12 month: 5 year: 2017 current: truedate: 13 month: 5 year: 2017 current: truedate: 14 month: 5 year: 2017 current: truedate: 15 month: 5 year: 2017 current: truedate: 16 month: 5 year: 2017 current: truedate: 17 month: 5 year: 2017 current: truedate: 18 month: 5 year: 2017 current: truedate: 19 month: 5 year: 2017 current: truedate: 20 month: 5 year: 2017 current: truedate: 21 month: 5 year: 2017 current: truedate: 22 month: 5 year: 2017 current: truedate: 23 month: 5 year: 2017 current: truedate: 24 month: 5 year: 2017 current: truedate: 25 month: 5 year: 2017 current: truedate: 26 month: 5 year: 2017 current: truedate: 27 month: 5 year: 2017 current: truedate: 28 month: 5 year: 2017 current: truedate: 29 month: 5 year: 2017 current: truedate: 30 month: 5 year: 2017 current: truedate: 1 month: 6 year: 2017 next: truedate: 2 month: 6 year: 2017 next: truedate: 3 month: 6 year: 2017 next: truedate: 4 month: 6 year: 2017 next: truedate: 5 month: 6 year: 2017 next: truedate: 6 month: 6 year: 2017 next: truedate: 7 month: 6 year: 2017 next: truedate: 8 month: 6 year: 2017 next: truedate: 9 month: 6 year: 2017 next: true
previous()
, next()
var Month = ;// months from 0 (january) ... to 11 (december)var m = 2017 5;mprevious;// return equivalent to `new Month(2017, 4)`mnext;// return equivalent to `new Month(2017, 6)`
getColumns()
dates grouped by day of week
var Month = ;// startDay to set Sunday as first week day (default)Month;// months from 0 (january) ... to 11 (december)2017 5;
returns:
date: 28 month: 4 year: 2017 previous: truedate: 4 month: 5 year: 2017 current: truedate: 11 month: 5 year: 2017 current: truedate: 18 month: 5 year: 2017 current: truedate: 25 month: 5 year: 2017 current: truedate: 2 month: 6 year: 2017 next: truedate: 29 month: 4 year: 2017 previous: truedate: 5 month: 5 year: 2017 current: truedate: 12 month: 5 year: 2017 current: truedate: 19 month: 5 year: 2017 current: truedate: 26 month: 5 year: 2017 current: truedate: 3 month: 6 year: 2017 next: truedate: 30 month: 4 year: 2017 previous: truedate: 6 month: 5 year: 2017 current: truedate: 13 month: 5 year: 2017 current: truedate: 20 month: 5 year: 2017 current: truedate: 27 month: 5 year: 2017 current: truedate: 4 month: 6 year: 2017 next: truedate: 31 month: 4 year: 2017 previous: truedate: 7 month: 5 year: 2017 current: truedate: 14 month: 5 year: 2017 current: truedate: 21 month: 5 year: 2017 current: truedate: 28 month: 5 year: 2017 current: truedate: 5 month: 6 year: 2017 next: truedate: 1 month: 5 year: 2017 current: truedate: 8 month: 5 year: 2017 current: truedate: 15 month: 5 year: 2017 current: truedate: 22 month: 5 year: 2017 current: truedate: 29 month: 5 year: 2017 current: truedate: 6 month: 6 year: 2017 next: truedate: 2 month: 5 year: 2017 current: truedate: 9 month: 5 year: 2017 current: truedate: 16 month: 5 year: 2017 current: truedate: 23 month: 5 year: 2017 current: truedate: 30 month: 5 year: 2017 current: truedate: 7 month: 6 year: 2017 next: truedate: 3 month: 5 year: 2017 current: truedate: 10 month: 5 year: 2017 current: truedate: 17 month: 5 year: 2017 current: truedate: 24 month: 5 year: 2017 current: truedate: 1 month: 6 year: 2017 next: truedate: 8 month: 6 year: 2017 next: true