generate dates between two dates day.js code example
Example: subtracting two date objects in javacript
function findDayDifference(date1, date2) {
// always round down
return Math.floor((Math.abs(date2-date1))/(1000*60*60*24));
}
function findDayDifference(date1, date2) {
// always round down
return Math.floor((Math.abs(date2-date1))/(1000*60*60*24));
}