📅  最后修改于: 2022-03-11 15:01:29.449000             🧑  作者: Mango
var admission = moment('{date1}', 'DD-MM-YYYY');
var discharge = moment('{date2}', 'DD-MM-YYYY');
discharge.diff(admission, 'days');