教程 dayjs tutorial

Date of Month

获取或设置月份里的日期。

接受 1 到 31 的数字。 如果超出这个范围,它会进位到月份。

javascript
dayjs().date(); // gets day of current month
dayjs().date(1); // returns new dayjs object
提示

dayjs#date 是该月的日期。 dayjs#day 是星期几。