Core Object | NN | IE | ECMA |
Date | Date and time object. | 2+ | 3+ | ECMA 1 |
|
Methods | NN | IE | ECMA |
getDate() | Date as an integer between 1 and 31. | 2+ | 3+ | ECMA 1 |
getDay() | Day of week value: 0=Sunday, 1=Monday... | 2+ | 3+ | ECMA 1 |
getFullYear() | 4 digit year of a Date object. | 4+ | 4+ | ECMA 1 |
getHours() | Hours value of a Date object (0-23). | 2+ | 3+ | ECMA 1 |
getMilliseconds() | Milliseconds value of a Date object (0-999) | 4+ | 4+ | ECMA 1 |
getMinutes() | Minutes value of a Date object (0-59) | 2+ | 4+ | ECMA 1 |
getMonth() | Month value of a Date object. (0=Jan, 11=Dec) | 2+ | 3+ | ECMA 1 |
getSeconds() | Seconds value of a Date object. (0-59) | 2+ | 3+ | ECMA 1 |
getTime() | Milliseconds since 1970-1-1 of a Date object. | 2+ | 3+ | ECMA 1 |
getTimezoneOffset() | Minutes between local and UTC (GMT) time. | 2+ | 3+ | ECMA 1 |
getUTCDate() | Date value using UTC (GMT) time. (1-31) | 4+ | 4+ | ECMA 1 |
getUTCDay() | Day of week using UTC (GMT) time. (0=Sunday) | 4+ | 4+ | ECMA 1 |
getUTCFullYear() | 4 digit year using UTC (GMT) time. | 4+ | 4+ | ECMA 1 |
getUTCHours() | Hours using UTC (GMT) time. (0-23) | 4+ | 4+ | ECMA 1 |
getUTCMilliseconds() | Milliseconds using UTC (GMT) time. (0-999) | 4+ | 4+ | ECMA 1 |
getUTCMinutes() | Minutes using UTC (GMT) time. (0-59) | 4+ | 4+ | ECMA 1 |
getUTCMonth() | Month using UTC (GMT) time. (0-11). | 4+ | 4+ | ECMA 1 |
getUTCSeconds() | Seconds using UTC (GMT) time. (0-59) | 4+ | 4+ | ECMA 1 |
getVarDate() | Visual Basic compatible VT_DATE value. | n/a | 4+ | n/a |
getYear() | Year value of a Date object. | 2+ | 3+ | ECMA 1 |
parse() | Milliseconds between parsed string and 1970-1-1 | 2+ | 3+ | ECMA 1 |
setDate() | Sets the date of the Date object. | 2+ | 4+ | ECMA 1 |
setFullYear() | Sets the year value in a Date object. | 4+ | 4+ | ECMA 1 |
setHours() | Sets the hours value in a Date object. | 2+ | 4+ | ECMA 1 |
setMilliseconds() | Sets the milliseconds value in a Date object. | 4+ | 4+ | ECMA 1 |
setMinutes() | Sets the minutess value in a Date object. | 2+ | 3+ | ECMA 1 |
setMonth() | Sets the month value in a Date object. | 2+ | 3+ | ECMA 1 |
setSeconds() | Sets the seconds value in a Date object. | 2+ | 3+ | ECMA 1 |
setTime() | Sets the time value (milliseconds) in a Date object. | 2+ | 3+ | ECMA 1 |
setUTCDate() | Sets the UTC date of a Date object. | 4+ | 4+ | ECMA 1 |
setUTCFullYear() | Sets the UTC year value in a Date object. | 4+ | 4+ | ECMA 1 |
setUTCHours() | Sets the UTC hours value in a Date object. | 4+ | 4+ | ECMA 1 |
setUTCMilliseconds() | Sets the UTC milliseconds value in a Date object. | 4+ | 4+ | ECMA 1 |
setUTCMinutes() | Sets the UTC minutess value in a Date object. | 4+ | 4+ | ECMA 1 |
setUTCMonth() | Sets the UTC month value in a Date object. | 4+ | 4+ | ECMA 1 |
setUTCSeconds() | Sets the UTC seconds value in a Date object. | 4+ | 4+ | ECMA 1 |
setYear() | Sets the year value of a Date object. | 2+ | 3+ | ECMA 1 |
toDateString() | Returns a date as a string value. | n/a | 5.5+ | n/a |
toGMTString() | String value of a Date objects GMT time. | 2+ | 3+ | ECMA 1 |
toLocaleDateString() | Returns a date as a string value. | n/a | 5.5+ | n/a |
toLocaleString() | String value of a Date object, in local time format. | 2+ | 3+ | ECMA 1 |
toLocaleTimeString() | Returns a time as a string value. | n/a | 5.5+ | n/a |
toSource() | String representing the source code of the object. | 4+ | n/a | ECMA 1 |
toString() | String representation of a Date object | 2+ | 4+ | ECMA 1 |
toTimeString() | Returns a time as a string value. | n/a | 5.5+ | n/a |
toUTCString() | Date converted to string using UTC. | 4+ | 4+ | ECMA 1 |
UTC() | Milliseconds since 1970 using UTC time. | 2+ | 3+ | ECMA 1 |
valueOf() | Milliseconds since 1970-1-1. | 2+ | 4+ | ECMA 1 |
|
Properties | NN | IE | ECMA |
constructor | Reference to the function that created an object. | 2+ | 4+ | ECMA 1 |
prototype | Creates a new method for Date objects | 2+ | 4+ | ECMA 1 |