getMilliseconds()
ES1+Returns the milliseconds (0-999) in the specified date according to local time.
Syntax
date.getMilliseconds()Return Value
number
A number (0-999) representing the milliseconds
Examples
JavaScript
const date = new Date();
console.log(date.getMilliseconds()); Output:
// 123