js获取从上月一整月日期
js获取从本月1号到今天的日期
const start = new Date()
start.setTime(new Date(new Date().getFullYear(), new Date().getMonth(), 1))
本月一号
获取上个月一整个月日期
const end = new Date()
const start = new Date()
var day = new Date(start.getFullYear(), start.getMonth(), 0).getDate()
start.setTime(new Date(new Date().getFullYear(), new Date().getMonth() - 1, 1))
end.setTime(new Date(new Date().getFullYear(), new Date().getMonth() - 1, day))