| 方法 | 描述 | |
| getDate() | setDate() | 返回/设置月份中的日期(1-31) |
| getDay() | 返回星期几(0-6) | |
| getFullYear() | setFullYear() | 返回/设置年份(4位数字) |
| getHours() | setHours() | 返回/设置小时(0-23) |
| getMilliseconds() | setMilliseconds() | 返回/设置毫秒数(0-999) |
| getMinutes() | setMinutes() | 返回/设置分钟(0-59) |
| getMonth() | setMonth() | 返回/设置月份(0-11) |
| getSeconds() | setSeconds() | 返回/设置秒(0-59) |
| getTime() | setTime() |
从1970年1月1日0点00:00 UTC(世界标准时间)开始计算的毫秒数。如果是 这之前的时间,返回一个 负值。 |
| getTimezoneOffset() |
按分钟为本地时间返回时区偏差值 |
|
| toDateString() | 返回适合人类阅读的日期 | |
| toTimeString() | 返回适合人类阅读的时间 | |
| toString() | 返回表示特定日期的字符串 |