How to get current time in milliseconds in Javascript

Views: 141 Ask New Question


On By

1 Answer


Following is the Javascript code to get current time in milliseconds

var millies = Date.now();

Some other ways of getting current time in milliseconds

var millies = new Date().getTime();

var millies = +new Date();
On By


Answer This Question