Date

Description

A date/time object.

Constructors

Date readonly Returns a new Date object holding the current date and time.

Methods

getDate readonly Returns the day of the month of the specified Date object in local time.
getDay readonly Returns the day of the week for the specified Date object in local time.
getFullYear readonly Returns the four digit year of the specified Date object in local time.
getHours readonly Returns the hour of the specified Date object in local time.
getMilliseconds readonly Returns the milliseconds of the specified Date object in local time.
getMinutes readonly Returns the minutes of the specified Date object in local time.
getMonth readonly Returns the month of the specified Date object in local time.
getSeconds readonly Returns the seconds of the specified Date object in local time.
getTime readonly Returns the number of milliseconds since midnight January 1,1970 UTC for the specified Date object.
getTimezoneOffset readonly Returns the difference in minutes between the computer’s local time and UTC.
getUTCDate readonly Returns the day of the month of the specified Date object according to UTC.
getUTCDay readonly Returns the day of the week for the specified Date object according to UTC.
getUTCFullYear readonly Returns the four digit year of the specified Date object according to UTC.
getUTCHours readonly Returns the hour of the specified Date object according to UTC.
getUTCMilliseconds readonly Returns the milliseconds of the specified Date object according to UTC.
getUTCMinutes readonly Returns the minutes of the specified Date object according to UTC.
getUTCMonth readonly Returns the month of the specified Date object according to UTC.
getUTCSeconds readonly Returns the seconds of the specified Date object according to UTC.
getYear readonly Returns the year of the specified Date object, as a difference from 1900, in local time.
setDate readonly Sets the day of the month of a specified Date object according to local time.
setFullYear readonly Sets the year of a specified Date object according to local time.
setHours readonly Sets the hours of a specified Date object according to local time.
setMilliseconds readonly Sets the milliseconds of a specified Date object according to local time.
setMinutes readonly Sets the minutes of a specified Date object according to local time.
setMonth readonly Sets the month of a specified Date object according to local time.
setSeconds readonly Sets the seconds of a specified Date object according to local time.
setTime readonly Sets the date of a specified Date object in milliseconds since midnight, January 1, 1970.
setUTCDate readonly Sets the date of a specified Date object according to universal time.
setUTCFullYear readonly Sets the year of a specified Date object according to UTC, can also set the month and date.
setUTCHours readonly Sets the hours of a specified Date object according to UTC.
setUTCMilliseconds readonly Sets the milliseconds of a specified Date object according to UTC.
setUTCMinutes readonly Sets the minutes of a specified Date object according to UTC.
setUTCMonth readonly Sets the month of a specified Date object according to UTC.
setUTCSeconds readonly Sets the seconds of a specified Date object according to UTC.
setYear readonly Sets the year of a specified Date object according to local time, as a difference between the current year and 1900.
toDateString readonly  
toGMTString readonly  
toLocaleDateString readonly  
toLocaleString readonly  
toLocaleTimeString readonly  
toSource readonly Creates a string representation of this object that can be fed back to?eval()?to re-create an object. Works only with built-in classes.
toString readonly Returns a string value representing the date and time stored in the Date object in human readable format.
toTimeString readonly  
toUTCString readonly  
valueOf readonly The valueOf() method returns the number of milliseconds that have passed since midnight, Returns an integer.

Static Methods

UTC readonly Returns the number of milliseconds between midnight January 1, 1970, UTC, and the specified time.
parse readonly Parses a string, returning a new Date object. The string should be similar to the string returned bt toString().