rafaelmaeuer
5/18/2017 - 2:59 PM

Get difference between 2 dates in javascript? - From http://stackoverflow.com/questions/3224834/get-difference-between-2-dates-in-javascript

var date1 = new Date("7/13/2010");
var date2 = new Date("12/15/2010");
var timeDiff = Math.abs(date2.getTime() - date1.getTime());
var diffDays = Math.ceil(timeDiff / (1000 * 3600 * 24)); 
alert(diffDays);