Hi,
Please help me in getting the difference of the two timestamps.

My Code:

Var d = new Date()

Var timestamp1 = d.getTime()

Var timestamp2 = d.getTime()
Var timediff = timestamp2 – timestamp1

Alert(timediff)

When I execute this code, I get a NaN

What’s going wrong with this code? Kindly help me with this problem.

Thanks,
Dhina