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

# getMonths

This function returns an array of month names.

#### Parameters

* `short` (boolean, default `false`):
  * If `true`, the function returns abbreviated month names (e.g., 'Jan', 'Feb').
  * If `false`, it returns full month names (e.g., 'January', 'February').

#### Returns

* An array of month names based on the provided parameter

```javascript
getMonths()
// ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December']
```

```javascript
getMonths(true)
//['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
```
