I am trying to calculate the difference between two timestamp "2020-03-18T17:34:45.856Z", "2020-03-18T16:34:45.856Z" the difference should be like this: 2 hours 20min 30sec
I have tried using
return moment.utc(moment(startDate, 'HH:mm:ss').diff(moment(endDate, 'HH:mm:ss'))).format('HH:mm:ss');
m not sure how to get the desired format