What is the best way to get a timestamp in JavaScript?

I need to print a time stamp using JavaScript. Can you please let me know how to do it.


  • new Date().getTime();

    This will return the number of milliseconds since the epoch.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


In this Discussion