Question: how to calculate the minutes between two times in javascript?
Answer: Initialize both Date object.
Subtract older date from the new date. It will give the number of milliseconds from 1 January, 1970.
Convert milliseconds to minutes .