📅  最后修改于: 2022-03-11 15:03:21.453000             🧑  作者: Mango
const loopThroughDateRange = (startDate, endDate) => {
let dateOne = new Date(startDate);
let dateTwo = new Date(endDate);
for(var i = dateOne; i<= dateTwo; i.setDate(i.getDate()+1)){
// variable i will be used to get all dates in range
}
}