Results 1 to 1 of 1
Oct 30, 2007, 10:31 #1
- Join Date
- Sep 2007
- 0 Post(s)
- 0 Thread(s)
find timestamps difference using getTime()
Please help me in getting the difference of the two timestamps.
Var d = new Date()
Var timestamp1 = d.getTime()
Var timestamp2 = d.getTime()
Var timediff = timestamp2 – timestamp1
When I execute this code, I get a NaN
What’s going wrong with this code? Kindly help me with this problem.