JavaScript getTime() Function Example

JavaScript getTime() Function return Milliseconds between Jan 1,1970 to now.

Example

<html>
<body>
  <script type="text/javascript">
    var dt = new Date();
    document.write(dt.getTime());
  </script>
</body>
</html>

Run it...   »

Example Result