Date.length (Property)

The length of a date object.

Availability:

ECMAScript edition - 2
JavaScript - 1.2
JScript - 3.0
Internet Explorer - 4.0
Netscape - 4.0
Property/method value type:Number primitive
JavaScript syntax:-myDate.length

The length property for a Date object returns the maximum number of arguments that the Date() constructor function accepts.

The length property always returns the value 7 for a Date object.

See also:Date object, Date.constructor

Property attributes:

ReadOnly, DontEnum.

Cross-references:

ECMA 262 edition 2 - section - 15.9.4

ECMA 262 edition 3 - section - 15.9.4