//计算日期相减天数
function DateMinus(sDate){
  var sdate = new Date(sDate.replace(/-/g, "/"));
  var now = new Date();
  var days = now.getTime() - sdate.getTime();
  var day = parseInt(days / (1000 * 60 * 60 * 24));
  return day;
}

相关文章:

  • 2022-12-23
  • 2021-12-13
  • 2021-10-17
  • 2021-09-09
  • 2022-12-23
  • 2021-09-27
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-13
  • 2021-12-03
  • 2021-12-03
  • 2022-12-23
  • 2021-12-02
  • 2022-12-23
相关资源
相似解决方案