js get number of days between 2 dates 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));
}