how to calculate the difference between two datetime in a string and return answer in minutes 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'));