Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何获得格式为毫秒的两个日期之间的天数差异。IE:
1377750038984 - 1329361285663 = xdays
非常感谢
var milliseconds = 1377750038984 - 1329361285663; var days = Math.floor( (milliseconds / (1000*60*60*24)) );