---
hide_title: false
hide_table_of_contents: false
pagination_next: null
pagination_prev: null
---
# Date.prototype.getMilliseconds()

The **`getMilliseconds()`** method returns the milliseconds in
the specified date according to local time.

## Syntax

```js
getMilliseconds()
```

### Return value

A number, between 0 and 999, representing the milliseconds for the given date according
to local time.
