| Method | Description | Date |
new Date ([year, month [,date [,hours [,minutes [,seconds [,ms]]]]]])
Create a new Date object.
When no arguments are passed the Date object is assigned the current date and time.
When one Number argument is passed, the Date object is assigned a time value based on the number of milliseconds since midnight January 1, 1970.
When one String argument is passed, the Date object is assigned the date and time represented by the argument.
Otherwise year and month must be supplied and the other arguments can be ommited in which case a value of 1 (for date) or 0 (for the rest) is used.
|
getDate |
getDate()
Get day of the month of this date.
|
getDay |
getDay()
Get week day of this date (Sunday==0).
|
getFullYear |
getFullYear()
Get year of this date.
|
getHours |
getHours()
Get hour part of this date.
|
getMilliseconds |
getMilliseconds()
Get milliseconds part of this date.
|
getMinutes |
getMinutes()
Get minutes part of this date.
|
getMonth |
getMonth()
Get month of this date (January==0).
|
getSeconds |
getSeconds()
Get seconds part of this date.
|
getTime |
getTime()
Return the number of milliseconds between this date and midnight January 1, 1970
|
getTimezoneOffset |
getTimezoneOffset()
Get current time zone offset in minutes.
|
getUTCDate |
getUTCDate()
Get day of the month of this date in UTC.
|
getUTCDay |
getUTCDay()
Get week day of this date in UTC (Sunday==0)
|
getUTCFullYear |
getUTCFullYear()
Get year of this date in UTC.
|
getUTCHours |
getUTCHours()
Get hour part of this date in UTC.
|
getUTCMilliseconds |
getUTCMilliseconds()
Get milliseconds part of this date in UTC.
|
getUTCMinutes |
getUTCMinutes()
Get minutes part of this date in UTC.
|
getUTCMonth |
getUTCMonth()
Get month of this date in UTC (January==0).
|
getUTCSeconds |
getUTCSeconds()
Get seconds part of this date in UTC.
|
parse |
parse(argument)
Parse specified string as date and return the number of milliseconds between that date and midnight January 1, 1970
|
setDate |
setDate(argument)
Set day of month.
|
setFullYear |
setFullYear(argument)
Set year.
|
setHours |
setHours(argument)
Set hour part of this date/time.
|
setMilliseconds |
setMilliseconds(argument)
Set milliseconds part of this date/time.
|
setMinutes |
setMinutes(argument)
Set minutes part of this date/time.
|
setMonth |
setMonth(argument)
Set month.
|
setSeconds |
setSeconds(argument)
Set seconds part of this date/time.
|
setTime |
setTime(argument)
Set date and time value as milliseconds since midnight January 1, 1970
|
setUTCDate |
setUTCDate(argument)
Set day of month in UTC.
|
setUTCFullYear |
setUTCFullYear(argument)
Set year in UTC.
|
setUTCHours |
setUTCHours(argument)
Set hour part of this date/time in UTC.
|
setUTCMilliseconds |
setUTCMilliseconds(argument)
Set milliseconds part of this date/time in UTC.
|
setUTCMinutes |
setUTCMinutes(argument)
Set minutes part of this date/time in UTC.
|
setUTCMonth |
setUTCMonth(argument)
Set month in UTC.
|
setUTCSeconds |
setUTCSeconds(argument)
Set seconds part of this date/time in UTC.
|
toDateString |
toDateString()
Convert date to a human-readable string.
|
toString |
toString()
Returns string representation of this object.
|
toTimeString |
toTimeString()
Convert time to a human-readable string.
|
toUTCString |
toUTCString()
Convert date and time to a UTC string.
|
valueOf |
valueOf()
Return the number of milliseconds between this date and midnight January 1, 1970
|