---
url: /cube-functions/month.md
description: Returns the month component of a given date value.
---

# MONTH&#x20;

Returns the month component of a given date value.

```js
MONTH(date_value)
```

#### Parameters

* `date_value` - The date value from which to extract the month component.

#### Examples

```js
MONTH("2022-04-17")

```

**Result:** `4`

**Note:** Returns the month component (4) of the given date value (2022-04-17).

```js
MONTH(45033)

```

**Result:** `4`

**Note:** Returns the month component (4) of the given date value (45033), which represents 2022-04-17.
