Answer the question
In order to leave comments, you need to log in
JS how to calculate date/month/day and convert it all to hours?
Hi all! Help me please! I need to calculate the total time and display the result in hours as a number ( Should be 80 hours ). We need endDate to subtract startDate and get the result like this: result = 80;
var startDate = "2020-09-04T11:38:22.283Z";
var endDate = "2020-09-18T11:38:00.000Z";
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question