How to get the milliseconds from the current date in JavaScript

1 Answer

0 votes
const today = new Date();

const milliseconds = today.getMilliseconds();
   
console.log(milliseconds);
 
 
/*
run:
 
805
 
*/

 



answered May 30, 2016 by avibootz
edited Feb 27, 2025 by avibootz

Related questions

...