Question

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

1377750038984 - 1329361285663 = xdays

Many thanks

Était-ce utile?

La solution

var milliseconds = 1377750038984 - 1329361285663;    
var days = Math.floor( (milliseconds / (1000*60*60*24)) );
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top