DWQA QuestionsCategory: JqueryGet DIffrence between two date
Ismael Ansari asked 6 years ago

var oneDay = 24*60*60*1000; // hours*minutes*seconds*milliseconds
var firstDate = new Date(2008,01,12);
var secondDate = new Date(2008,01,22);
var diffDays = Math.abs((firstDate.getTime() – secondDate.getTime())/(oneDay));