Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

time difference in minutes in js

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);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #time #difference #minutes #js
ADD COMMENT
Topic
Name
1+8 =