> 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.getutcminutes.md).

# Date.getUTCMinutes()

Returns the minutes, according to universal time (from 0-59)

The getUTCMinutes() method returns the minutes in the specified date according to universal time.

```javascript
var date1 = new Date('1 January 2000 03:15:30 GMT+07:00');
var date2 = new Date('1 January 2000 03:15:30 GMT+03:30');

console.log(date1.getUTCMinutes()); // 31 Dec 1999 20:15:30 GMT
// expected output: 15

console.log(date2.getUTCMinutes()); // 31 Dec 1999 23:45:30 GMT
// expected output: 45

```

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

```javascript
dateObj.getUTCMinutes()
```

**Return value**

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

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

#### Using `getUTCMinutes()` <a href="#using_getutcminutes" id="using_getutcminutes"></a>

The following example assigns the minutes portion of the current time to the variable `minutes`.

```javascript
var today = new Date();
var minutes = today.getUTCMinutes();
```

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

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

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

Uros Durdevic
