Skip to content

Instantly share code, notes, and snippets.

@funnythingz
Created March 27, 2018 08:51
Show Gist options
  • Save funnythingz/8de93f917c2acdfbd6df7b3687016e02 to your computer and use it in GitHub Desktop.
Save funnythingz/8de93f917c2acdfbd6df7b3687016e02 to your computer and use it in GitHub Desktop.
var ahya = function(startDate, endDate) {
var start = new Date(startDate);
var end = new Date(endDate);
var result = [];
for(var d = start, i = 0; d < end; d.setDate(d.getDate()+1), i++) {
result.push(new Date(d.getTime()));
}
return result;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment