var date1 = new Date('10.05.12 14:30'); var date2 = new Date('10.05.12 15:20'); var delta = date2-date1; var minutes = Math.round(delta / (60*1000)); var hours = Math.floor(minutes / 60); minutes -= (hours * 60); alert(hours + ' ' + minutes);