I have 2 variables in javascript where 2 times has been stored for a reason.
say for ex:
var currentdate = new Date();
var time1 = "24:00:00"; // everytime this will be 24
var time2 = var time2 = currentdate.getHours() +":"+ currentdate.getMinutes() ; // this is the system time
need difference between the 2 times.
If have tried with time1-time2
but it is not working.
I want to make if difference between the 2 times is x, then perform some task. I need the difference thats it.