I have a situation where I need to calculate the time difference between two timestamps.
Starting time: "2014/10/28 11:50:28:318"
Ending time: "2014/10/28 11:50:35:249"
To achieve this, I utilized moment.js for the calculation. Here is my code:
var msElapsedTime = moment(EndTime , "DD/MM/YYYY HH:mm:ss:sss").diff(moment(StartTime , "DD/MM/YYYY HH:mm:ss:sss"));
The result shows as milliseconds, but it seems to be rounded off.