search

goog.date.Date

Provided By
All Known Direct Subclasses

Class representing a date. Defaults to current date if none is specified.

Implements most methods of the native js Date object (except the time related ones, goog.date.DateTime) and can be used interchangeably with it just as if goog.date.Date was a synonym of Date. To make this more transparent, Closure APIs should accept goog.date.DateLike instead of the real Date object.

new Date( opt_year, opt_month, opt_date )

Parameters
opt_year(number|Date|goog.date.Date|null)=

Four digit year or a date-like object. If not set, the created object will contain the date determined by goog.now().

opt_monthnumber=

Month, 0 = Jan, 11 = Dec.

opt_datenumber=

Date of month, 1 - 31.

See Also

goog.date.DateTime

Instance Methods

Instance Properties

Static Functions