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
}
}
var now = new Date();
var daysOfYear = [];
for (var d = new Date(2012, 0, 1); d <= now; d.setDate(d.getDate() + 1)) {
daysOfYear.push(new Date(d));
}