getmonthlist
v1.0.6
Published
Input the month and year, Output the data for the current month
Downloads
9
Maintainers
Readme
getMonthList
Input the month and year, Output the data for the current month
Usage
import getMonthList from 'getmonthlist'
// November 2019
getMonthList(2019, 10) // [{year: 2019, month: 10, day: 1, week: 5}, ..., {year: 2019, month: 10, day: 30, week: 6}]
// June 2017
getMonthList(2017, 7) // [{year: 2017, month: 7, day: 1, week: 6}, ..., {year: 2017, month: 7, day: 31, week: 1}]
// default is current time
getMonthList() // [{year: 2019, month: 10, day: 1, week: 5}, ..., {year: 2019, month: 10, day: 30, week: 6}]