---
url: /cube-functions/monthdays.md
description: Returns the number of days in the provided month
---

# MONTHDAYS

Returns the number of days in the provided month

```js
MONTHDAYS(year_number, month_number)
```

#### Parameters

* `year_number` - The year.
* `month_number` - The month (1-12).

#### Examples

```js
MONTHDAYS(2021, 12)
```

**Result:** `31`
