最近一个月:
const start = new Date()
start.setTime(start.getTime() - 3600 * 1000 * 24 * 30)
往前30天:
moment().subtract(30, "days").format('YYYYMMDD')
今年第一天:
const start = new Date()
start.setMonth(0)
start.setDate(1)
start.setTime(start)
去年第一天:
const start = new Date(new Date().getFullYear()-1,0,1);
start.setTime(start)
某年第一天:
const start = new Date(1900, 0, 1)
start.setTime(start)