subtract two dates with hours minutes in javascript code example
Example: javascript subtract 2 dates get difference in minutes
var diff = Math.abs(new Date('2011/10/09 12:00') - new Date('2011/10/09 00:00'));
var diff = Math.abs(new Date('2011/10/09 12:00') - new Date('2011/10/09 00:00'));