# getMilliseconds method

The `getMilliseconds` method is applied to the date object and returns the current value of milliseconds (a number from `0` to `999`).

## Syntax

`date.getMilliseconds();`

## Example

Let's output the current number of milliseconds:

`let date = new Date(); let res = date.getMilliseconds(); console.log(res);`

## See also

- the `getHours` method
  that gets the hours
- the `getMinutes` method
  that gets the minutes
- the `getSeconds` method
  that gets the seconds

← →
↑
en ru