ES6 - getMilliseconds() Method


Advertisements

JavaScript date getMilliseconds() method returns the milliseconds in the specified date according to local time. The value returned by getMilliseconds is a number between 0 and 999.

Syntax

Date.getMilliseconds ()   

Return Value

Returns the milliseconds in the specified date according to local time.

Example

var dt = new Date("December 25, 1995 23:15:00"); 
console.log("getMilliseconds() : " + dt.getMilliseconds() );   

Output

getMilliseconds() : 0 
es6_date.htm
Advertisements