JavaScript中两个日期之间的差异

时间:2010-05-27 12:51:54

标签: javascript

  

可能重复:
  Calculating the difference between two dates
  What’s the best way to calculate date difference in Javascript

如何在JavaScript中找到两个日期之间的差异?

3 个答案:

答案 0 :(得分:1)

 return date1 - date2;
 // returns the number of microseconds between the two `Date`s.

答案 1 :(得分:0)

答案 2 :(得分:0)