ES6 - getUTCMilliseconds() Method


Advertisements


JavaScript date getUTCMilliseconds() method returns the milliseconds in the specified date according to universal time. The value returned by getUTCMilliseconds is an integer between 0 and 999.

Syntax

Date.getUTCMilliseconds ()   

Return Value

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

Example

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

Output

getUTCMilliseconds() : 0    

es6_date.htm

Advertisements