Date.getMilliseconds

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

Method of Date

Syntax

getMilliseconds()

Parameters

None

Description

The value returned by getMilliseconds is a number between 0 and 999.

Examples

The following example assigns the milliseconds portion of the current time to the variable ms.

See also

Date.getUTCMilliseconds, Date.setMilliseconds

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.