Answers for "calculate total time from start and end datetime"

1

calculate total time from start and end datetime

var date1 = new Date('2019-02-27T23:34:25');
var date2 = new Date('2019-02-28T15:55:38');
var ElapsedSeconds = (date2 - date1) / 1000;
// var ElapsedHours = ElapsedSeconds / 3600;
Posted by: Guest on June-20-2020

Code answers related to "calculate total time from start and end datetime"

Browse Popular Code Answers by Language