useDate API
组件页面
可用属性
| addDays |
| Adds the specified number of days to the date. |
| addHours |
| MISSING DESCRIPTION |
| addMinutes |
| MISSING DESCRIPTION |
| addMonths |
| Adds the specified number of months to the date. |
| addWeeks |
| MISSING DESCRIPTION |
| date |
| Takes any value and returns a date object. |
| endOfDay |
| Returns the last second of the day. |
| endOfMonth |
| Returns the last day of the month. |
| endOfWeek |
| Returns the last day of the week. |
| endOfYear |
| Returns the last day of the year. |
| format |
| Takes a date object and returns it in a specified format. |
| getDate |
| MISSING DESCRIPTION |
| getDiff |
| Returns the difference between two dates in the specified unit. |
| getHours |
| MISSING DESCRIPTION |
| getMinutes |
| MISSING DESCRIPTION |
| getMonth |
| Returns the month of the date. |
| getNextMonth |
| MISSING DESCRIPTION |
| getPreviousMonth |
| MISSING DESCRIPTION |
| getWeekArray |
| Returns an array of the days of the week of the date. |
| getWeekdays |
| Returns an array of the names of the days of the week. |
| getYear |
| Returns the year of the date. |
| isAfter |
| Returns true if the first date is after the second date. |
| isAfterDay |
| MISSING DESCRIPTION |
| isBefore |
| Returns true if the first date is before the second date. |
| isEqual |
| Returns true if the two dates are equal. |
| isSameDay |
| Returns true if the two dates are the same day. |
| isSameMonth |
| Returns true if the two dates are the same month. |
| isSameYear |
| MISSING DESCRIPTION |
| isValid |
| Returns true if the date is valid. |
| isWithinRange |
| Returns true if the first date is within the range of the second and third dates. |
| locale |
| Returns the current locale being used. |
| parseISO |
| MISSING DESCRIPTION |
| setDate |
| MISSING DESCRIPTION |
| setHours |
| MISSING DESCRIPTION |
| setMinutes |
| MISSING DESCRIPTION |
| setMonth |
| MISSING DESCRIPTION |
| setYear |
| Sets the year of the date. |
| startOfDay |
| Returns the first second of the day. |
| startOfMonth |
| Returns first day of the month. |
| startOfWeek |
| Returns the first day of the week. |
| startOfYear |
| Returns the first day of the year. |
| toISO |
| MISSING DESCRIPTION |
| toJsDate |
| Converts date value to a JS Date Object. |