📜  如何使用 moment.js 减去 2 个日期 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:43.056000             🧑  作者: Mango

代码示例1
var date1 = moment('2016-10-08 10:29:23');
var date2 = moment('2016-10-08 11:06:55');
var diff = date2.diff(date1);