# JavaScript Date 常见属性和方法汇总

**URL:** <https://www.isharkfly.com/t/javascript-date/8535>\
**Category:** 前端\
**Created:** [October 23, 2012, 3:06am UTC](https://www.isharkfly.com/t/javascript-date/8535 "2012-10-23T03:06:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![honeymoose](https://www.isharkfly.com/user_avatar/www.isharkfly.com/honeymoose/32/20796_2.png) [@honeymoose](https://www.isharkfly.com/u/honeymoose)\
**Post date:** [October 23, 2012, 3:06am UTC](https://www.isharkfly.com/t/javascript-date/8535/1 "2012-10-23T03:06:29Z")

</div>

Date 对象提供成熟的操作日期和时间的诸多方法，方便脚本开发过程中程序员简单、快捷操纵日期和时间。

Date 对象提供大量的方法来方便脚本程序开发人员快捷操作日期对象，但在早期的浏览器及其版本（特别是Netscape Navigator）中的支持较差，经常出现莫名其妙的错误。

但在Netscape 4+和Internet Explorer 4+后逐步得到较为完善的支持，有效减少了错误，还可以处理GMT 标准零点之前或之后成千上百年的日期，足以解决大部分的问题。
