Thursday, May 16, 2013

No.Of minutes getting with two different date and time javascript objects

var diff = Math.abs(new Date('2011/10/09 12:00') - new Date('2011/10/09 00:00'));
var minutes = Math.floor((diff/1000)/60);

No comments:

Post a Comment