antonpug antonpug - 1 year ago 134
Javascript Question

How to get time in milliseconds since the unix epoch in Javascript?

Possible Duplicate:

How do you get a timestamp in JavaScript?

Calculating milliseconds from epoch

How can I get the current
time in Javascript? Basically the number of milliseconds since midnight, 1970-01-01.

Answer Source
var milliseconds = (new Date).getTime();
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download