Date class

getDate()
Returns the day of the month (1 through 31) for the date.
getDay()
Returns the date's day of the week as a number (where 0 represents Sunday and 6 represents Saturday).
getFullYear()
Returns the four-digit year (2007 instead of just 07).
getHours()
Returns the date's hours as a number between 0 and 23.
getMilliseconds()
Returns the date's milliseconds.
getMinutes()
Returns the date's minutes as a number between 0 and 59.
getMonth()
Returns the month of the date, where 0 represents January and 11 represents December.
getSeconds()
Returns the date's seconds as a number between 0 and 59.
getTime()
Returns the milliseconds representation of the date; same as valueOf().
getTimezoneOffset()
Returns the number of minutes that the local time zone is off set from UTC. For example, Eastern Standard Time returns 300. This value changes when an area goes into Daylight Saving Time.
getUTCDate()
Returns the day of the month (1 through 31) for the UTC date.
getUTCDay()
Returns the UTC date's day of the week as a number (where 0 represents Sunday and 6 represents Saturday).
getUTCFullYear()
Returns the four-digit year of the UTC date value.
getUTCHours()
Returns the UTC date's hours as a number between 0 and 23.
getUTCMilliseconds()
Returns the UTC date's milliseconds.
getUTCMinutes()
Returns the UTC date's minutes as a number between 0 and 59.
getUTCMonth()
Returns the month of the UTC date, where 0 represents January and 11 represents December.
getUTCSeconds()
Returns the UTC date's seconds as a number between 0 and 59.
now()
returns current time in the millisecond.
parse()
accepts a string argument representing a date.
setDate(date)
Sets the day of the month for the date. If the date is greater than the number of days in the month, the month value also gets increased.
setFullYear(year)
Sets the year of the date. The year must be given with four digits (2007 instead of just 07).
setHours(hours)
Sets the date's hours. Setting the hours to a number greater than 23 also increments the day of the month.
setMilliseconds
Sets the date's milliseconds. (milliseconds)
setMinutes(minutes)
Sets the date's minutes. Setting the minutes to a number greater than 59 also increments the hour.
setMonth(month)
Sets the month of the date, which is any number 0 or greater. Numbers greater than 11 add years.
setSeconds(seconds)
Sets the date's seconds. Setting the seconds to a number greater than 59 also increments the minutes.
setTime(milliseconds)
Sets the milliseconds representation of the date, thus changing the entire date.
setUTCDate(date)
Sets the day of the month for the UTC date. If the date is greater than the number of days in the month, the month value also gets increased.
setUTCFullYear(year)
Sets the year of the UTC date. The year must be given with four digits (2007 instead of just 07).
setUTCHours(hours)
Sets the UTC date's hours. Setting the hours to a number greater than 23 also increments the day of the month.
setUTCMilliseconds
Sets the UTC date's milliseconds. (milliseconds)
setUTCMinutes(minutes)
Sets the UTC date's minutes. Setting the minutes to a number greater than 59 also increments the hour.
setUTCMonth(month)
Sets the month of the UTC date, which is any number 0 or greater. Numbers greater than 11 add years.
setUTCSeconds(seconds)
Sets the UTC date's seconds. Setting the seconds to a number greater than 59 also increments the minutes.
toDateString()
displays the date's day of the week, month, day of the month, and year.
toLocaleDateString()
displays the date's day of the week, month, day of the month, and year.
toLocaleString()
returns the date and time in a locale format.
toLocaleTimeString()
displays the date's hours, minutes, and seconds.
toString()
returns the date and time with time-zone information.
toTimeString()
displays the date's hours, minutes, seconds, and time zone.
toUTCString()
displays the complete UTC date.
UTC()
returns the millisecond of a date.
valueOf()
returns the milliseconds representation of the date.
Home 
  JavaScript Book 
    JavaScript Reference  

JavaScript Reference:
  1. Array class
  2. Date class
  3. Math class
  4. Number class
  5. String class
  6. Document
  7. History
  8. The HTMLElement Members
  9. Window
  10. Screen
  11. Navigator
  12. Location
  13. html tag and its cooresponding JavaScript class