moment获取本周内日期段
开始日期
{
name: '1周内',
start: moment().week(moment().week() - 0).startOf('week').format('YYYY-MM-DD'),
end: moment().format("YYYY-MM-DD")
}
结果
end: "2022-04-20"
name: "1周内"
start: "2022-04-17"
moment获取本周内日期段
{
name: '1周内',
start: moment().week(moment().week() - 0).startOf('week').format('YYYY-MM-DD'),
end: moment().format("YYYY-MM-DD")
}
end: "2022-04-20"
name: "1周内"
start: "2022-04-17"