# MINUTE

**The function MINUTE returns the value of the minute in a Time or DateTime.**

This function takes input in the form of either a [Time](../../variable-data-types/the-time-variable-data-type) or a [DateTime](../../variable-data-types/the-datetime-variable-data-type). It returns a [Number](../../variable-data-types/the-number-variable-data-type): the value of the minute in the given [Time](../../variable-data-types/the-time-variable-data-type) or a [DateTime](../../variable-data-types/the-datetime-variable-data-type).

#### Declaration

```javascript
MINUTE(datetime) -> minute
```

```javascript
MINUTE(time) -> minute
```

&#x20;

#### Parameters

**datetime** (type: _DateTime_) Any DateTime. This is what describes the minute value that the MINUTE function will return.

**time** (type: _Time_) Any Time. This is what describes the minute value that the MINUTE function will return.

#### Return Values

**minute** (type: _Number_) The minute value from the given Date or DateTime.

#### Examples

Assume the first example has access to the following DateTime value:

```javascript
example_date_and_time = {  
 "date": {  
  "day": 1,  
  "month": 4,  
  "year": 2021  
 },  
 "time": {  
  "hour": 16,  
  "minute": 14,  
  "second": 38,  
  "millisecond": 0  
 },  
 "timeZone": "UTC"  
}
```

The following example takes the time described in **example\_date\_and\_time** and outputs the number of minutes described:

```javascript
MINUTE(example_date_and_time) = 14
```

The above example demonstrates how the MINUTE function behaves when given a DateTime as input. In order to further establish how the MINUTE function behaves when given a Time as input, assume the last example has access to the following Time value:

```javascript
example_time = {  
 "hour": 16,  
 "minute": 14,  
 "second": 38,  
 "millisecond": 0  
}
```

The following example takes the time described in **example\_time** and outputs the number of minutes described:

```javascript
MINUTE(example_time) = 14
```
