# Date of Month

URL: https://caijiao.org/dayjs/get-set/date
Source: docs/dayjs/get-set/date.md
Description: 获取或设置月份里的日期。接受 1 到 31 的数字。 如果超出这个范围，它会进位到月份。

获取或设置月份里的日期。

接受 1 到 31 的数字。 如果超出这个范围，它会进位到月份。

```javascript
dayjs().date(); // gets day of current month
dayjs().date(1); // returns new dayjs object
```
