Summary Table
Categories |
Total Count |
PII |
0 |
URL |
0 |
DNS |
0 |
EKL |
0 |
IP |
0 |
PORT |
0 |
VsID |
0 |
CF |
0 |
AI |
0 |
VPD |
0 |
PL |
0 |
Other |
0 |
File Content
export const getDates = (startDate, endDate) => {
let dates = [];
let currentDate = new Date(startDate);
let addDays = function(days) {
let date = new Date(this.valueOf());
date.setDate(date.getDate() + days);
return date;
}
while (currentDate <= new Date(endDate)) {
dates.push(currentDate);
currentDate = addDays.call(currentDate ,1);
}
return dates.map(date => new Date(date).toLocaleDateString('en',{month: '2-digit', day: '2-digit'}).replace(' ', '/'));
}