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
This commit is contained in:
9
src/lib/getDatesInRange.ts
Normal file
9
src/lib/getDatesInRange.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
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;
|
||||
}
|
||||
Reference in New Issue
Block a user