Node.jsで指定した開始日と終了日の間の日付範囲を見つける方法
function getDateRange(startDate, endDate) { const dateRange = []; const currentDate = new Date(startDate); while (currentDate <= endDate) { dateRange.push(new Date(currentDate)); currentDate.setDate(currentDate.getDate() + 1); } return dateRange; } // 使用例 const startDate = new D>>More