var startTime = new Date('2012/10/09 12:00'); var endTime = new Date('2013/10/09 12:00'); var difference = endTime.getTime() - startTime.getTime(); // This will give difference in milliseconds var resultInMinutes = Math.round(difference / 60000);