Files
sistem-desa-mandiri/src/lib/getDatesInRange.ts
amal 3ec93ffe02 upd: fitur baru
Dekripsi:
- update struktur database
- tambah task detail jam pada project
- get list modal detail jam task project
- api get list detail jam task
- api tambah task detail jam pada project

No Issues
2025-08-18 17:46:28 +08:00

9 lines
285 B
TypeScript

export function getDatesInRange(startDate: Date, endDate: Date) {
const dates = [];
const currentDate = new Date(startDate);
while (currentDate <= endDate) {
dates.push(new Date(currentDate));
currentDate.setDate(currentDate.getDate() + 1);
}
return dates;
}