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

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

## Syntax

```js
getSeconds()
```

### Return value

An integer number, between 0 and 59, representing the seconds in the given date
according to local time.
