How can I get the number of seconds between two Dates? For example, if Date "now" was "Tue Jan 01 00:00:00 EST 2002" and Date "then" was "Tue Jan 01 00:00:30 EST 2002", the difference would be 30.
Printable View
How can I get the number of seconds between two Dates? For example, if Date "now" was "Tue Jan 01 00:00:00 EST 2002" and Date "then" was "Tue Jan 01 00:00:30 EST 2002", the difference would be 30.
set the two Dates up, and use the getTime() method to get the date in milliseconds. Then find the difference between the two and multiply by 1000.
:)
Divide by 1000. :p
Trying it now...
Whatever :rolleyes:Quote:
Originally posted by filburt1
Divide by 1000. :p
Trying it now...
If I gave you the right answer all the time, you'd never figure things out for yourself.
:D
Awesomely outrageous, it works. :)
And shut up. :D :D