Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
GinoTerlouw authored Aug 17, 2018
1 parent 438233c commit a72b200
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,10 @@

/*array containing all the dates*/
let getDateRange = function (date, range) {
let startDate = new Date(date.toISOString().split('T')[0])
let end = new Date()
let arr = []
end.setDate(date.getDate() + range)
let endDate = new Date(end.toISOString().split('T')[0])

console.log(startDate)
console.log(endDate)


while (endDate.getTime() !== startDate.getTime()) {
arr.push(new Date(endDate).toISOString().split('T')[0])
if (endDate < startDate){
Expand Down

0 comments on commit a72b200

Please sign in to comment.