Appearance
jhooks-react / Modules / hooks / useDate
Function: useDate
hooks.useDate
▸ useDate(date?): Object
Parameters
| Name | Type | Description |
|---|---|---|
date? | null | string | number | Dayjs | Date | 指定日期 |
Returns
Object
| Name | Type |
|---|---|
backThisWeek | () => void |
changeMonth | (action: "prev" | "next", nextMonth: Dayjs) => { nextCurrentMonth: Dayjs ; nextDateList: { date: string ; fullDate: string }[][] } |
changeWeek | (action: "prev" | "next") => void |
currentMonth | Dayjs |
dateList | DateList |
fullDate | DateList[] |
weekIndex | number |