Question: how to find difference between two dates moment?
Answer: Date difference with Moment objects You can also create Moment objects and then calculate the difference: var admission = moment('{date1}', 'DD-MM-YYYY'); var discharge = moment('{date2}', 'DD-MM-YYYY'); discharge.