I've been searching to get the date difference in Javascript, but I am not quite getting the answers I need.
When I compare 2015/12/02 to 2015/11/30, the date difference should be 2. But with my code, I get -28. how do I resolve this issue - also considering the days of the months differ.
    var btdate = new Date('2015/11/30');
    var etdate = new Date('2015/12/02');
    var diff2 = etdate.getDate() - btdate.getDate();
    console.log(diff2);
 
     
     
     
     
     
    