Question

How do I get the difference in days between two dates formated as milliseconds. I.E.:

1377750038984 - 1329361285663 = xdays

Many thanks

Was it helpful?

Solution

var milliseconds = 1377750038984 - 1329361285663;    
var days = Math.floor( (milliseconds / (1000*60*60*24)) );
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top