how to calc difference between dates 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));
}