# Month

URL: https://caijiao.org/dayjs/get-set/month
Source: docs/dayjs/get-set/month.md
Description: 获取或设置月份。传入 0 到 11 的 number。如果超出这个范围，它会进位到年份。

获取或设置月份。

传入 0 到 11 的 number。 如果超出这个范围，它会进位到年份。

```javascript
dayjs().month(); // gets current month
dayjs().month(0); // returns new dayjs object
```
