I have two variables, startTime
(01:00:00 AM) and endTime
(02:00:00 AM), I need to calculate the difference between one and another, how would I do this in the angular? I saw that there is Date.parse()
, but I need to pass a date.