score:0

Accepted answer

i would recommend moment.js to you moment.js docs - difference

const date1 = moment('2016-10-08 10:29:23');
const date2 = moment('2016-10-08 11:06:55');
const diff = date2.diff(date1);
const minutesdif= date2.diff(date1, 'minutes');

for your exact application i would recommend a look into the documentation


Related Query

More Query from same tag