I have the following function. It is supose to calculate time difference between a static time (that I pull from a database) and the current time.
Here is my current function with a sample time in it.
Theday = new Date();
TheTime = Theday.getTime();
LogInTime = "15:30:12";
TheDesc.innerHTML="You have been logged in for aproximately " + parseInt((Theday-LogInTime)/1000);
The way that it is now, I get this result (TheDesc.innerHTML).....
"You have been logged in for aproximately NaN"