Day.js 中文文档

当前版本 v1.11

更多文档

日期

获取或设置月中的第几天。

接受从 1 到 31 的数字。如果超出范围,它将冒泡到几个月。

dayjs().date() // gets day of current month
dayjs().date(1) // returns new dayjs object

dayjs#date 表示月份的日期,dayjs#day 表示星期几。

Day.js 中文文档 - 粤ICP备14034220号-1