Easy Tutorial
❮ Jsref Split Jsref Substring ❯

JavaScript getMilliseconds() Method

JavaScript Date Object

Example

Returns the milliseconds according to local time:

n Output result:


Definition and Usage

The getMilliseconds() method returns the milliseconds of a time.


Browser Support

All major browsers support the getMilliseconds() method.


Syntax

Return Value

Type Description
Number Returns an integer between 0 and 999, representing the milliseconds.

Technical Details

| JavaScript Version: | 1.3 | | --- | --- |


More Examples

Example

Returns the milliseconds of a specified time:

n Output result:

Show Time


JavaScript Date Object

❮ Jsref Split Jsref Substring ❯