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.