js计算两个日期之间的差的天数 let LastTime = '2022-08-02 00:00:00' let nextTime = '2022-08-08 00:00:00' let datedifference = (new Date(nextTime) - new Date(LastTime)) / (1000 * 3600 * 24); // datedifference = 6