> For the complete documentation index, see [llms.txt](https://date.gitbook.io/dateall/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://date.gitbook.io/dateall/javascript/methods/date.getminutes.md).

# Date.getMinutes()

Returns the minutes (from 0-59)

The getMinutes() method returns the minutes in the specified date according to local time.

```javascript
var birthday = new Date('March 13, 08 04:20');

console.log(birthday.getMinutes());
// expected output: 20

```

## Syntax <a href="#syntax" id="syntax"></a>

```javascript
dateObj.getMinutes()
```

**Return value**

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

## Examples <a href="#examples" id="examples"></a>

#### Using `getMinutes()` <a href="#using_getminutes" id="using_getminutes"></a>

The second statement below assigns the value 15 to the variable `minutes`, based on the value of the [`Date`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) object `Xmas95`.

```javascript
var Xmas95 = new Date('December 25, 1995 23:15:30');
var minutes = Xmas95.getMinutes();

console.log(minutes); // 15
```

## References <a href="#references" id="references"></a>

{% embed url="<https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getMinutes>" %}

## Contributors to this page <a href="#contributors-to-this-page" id="contributors-to-this-page"></a>

Uros Durdevic<br>
