I have this function:
dateDifference: function(start_date, end_date)
{
var date1 = new Date(start_date);
var date2 = new Date(end_date);
var timeDiff = Math.abs(date2.getTime() - date1.getTime());
return timeDiff;
}
how you can see I calculate the difference between two dates passed as parameter, now the end result is like this:
55000
But I want the result in minutes how I can achieve this?