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

The **`getMonth()`** method returns the month in the specified
date according to local time, as a zero-based value (where zero indicates the first
month of the year).

## Syntax

```js
getMonth()
```

### Return value

An integer number, between 0 and 11, representing the month in the given date according
to local time. 0 corresponds to January, 1 to February, and so on.
