mirror of https://gitgud.io/fatchan/jschan.git
parent
b226c2e65d
commit
9ab024882e
1 changed files with 0 additions and 12 deletions
@ -1,12 +0,0 @@ |
|||||||
'use strict'; |
|
||||||
|
|
||||||
//https://stackoverflow.com/a/4413721
|
|
||||||
module.exports = (startDate, stopDate) => { |
|
||||||
const dateArray = new Array(); |
|
||||||
let currentDate = startDate; |
|
||||||
while (currentDate <= stopDate) { |
|
||||||
dateArray.push(new Date (currentDate.valueOf())); |
|
||||||
currentDate.setDate(currentDate.getDate() + 1); |
|
||||||
} |
|
||||||
return dateArray; |
|
||||||
} |
|
Loading…
Reference in new issue