Method | What it Does |
Date() | Used to retrieve today's date and time |
getDate() | Used to retrieve the day of the month from a Date object (from 1-31) |
getDay() | Used to retrieve the day of the week from a Date object (from 0-6) |
getMonth() | Used to retrieve the month from a Date object (from 0-11) |
getFullYear() | Used to retrieve the year, as a four-digit number, from a Date object |
getYear() | Used to retrieve the year, as a two-digit or a four-digit number, from a Date object. |
getHours() | Used to retrieve the hour of a Date object (from 0-23) |
getMinutes() | Used to retrieve the minutes of a Date object (from 0-59) |
getSeconds() | Used to retrieve the seconds of a Date object (from 0-59) |
getMilliseconds() | Used to retrieve the milliseconds of a Date object (from 0-999) |
getTime() | Used to retrieve the number of milliseconds since midnight Jan 1, 1970 |
getTimezoneOffset() | Gets the difference in minutes between local time and Greenwich Mean Time (GMT) |
getUTCDate() | Used to retrieve the day of the month from a Date object according to universal time (from 1-31) |
getUTCDay() | Used to retrieve the day of the week from a Date object according to universal time (from 0-6) |
getUTCMonth() | Used to retrieve the month from a Date object according to universal time (from 0-11) |
getUTCFullYear() | Used to retrieve the four-digit year from a Date object according to universal time |
getUTCHours() | Used to retrieve the hour of a Date object according to universal time (from 0-23) |
getUTCMinutes() | Used to retrieve the minutes of a Date object according to universal time (from 0-59) |
getUTCSeconds() | Used to retrieve the seconds of a Date object according to universal time (from 0-59) |
getUTCMilliseconds() | Used to retrieve the milliseconds of a Date object according to universal time (from 0-999) |
parse() | Uses a date string to return the number of milliseconds from midnight of January 1, 1970 |
setDate() | Used to set the day of the month in a Date object (from 1-31) |
setMonth() | Used to set the month in a Date object (from 0-11) |
setFullYear() | Used to set the year in a Date object (four digits) |
setYear() | Used to set the year in the Date object (two or four digits) |
setHours() | Used to set the hour in a Date object (from 0-23) |
setMinutes() | Used to set the minutes in a Date object (from 0-59) |
setSeconds() | Used to set the seconds in a Date object (from 0-59) |
setMilliseconds() | Used to set the milliseconds in a Date object (from 0-999) |
setTime() | Used to calculate a date and time by adding/subtracting a certain number of milliseconds to or from midnight January 1, 1970 |
setUTCDate() | Used to set the day of the month in a Date object according to universal time (from 1-31) |
setUTCMonth() | Used to set the month in a Date object according to universal time (from 0-11) |
setUTCFullYear() | Used to set the year in a Date object according to universal time (a four digit value) |
setUTCHours() | Used to set the hour in a Date object according to universal time (from 0-23) |
setUTCMinutes() | Used to set the minutes in a Date object according to universal time (from 0-59) |
setUTCSeconds() | Used to set the seconds in a Date object according to universal time (from 0-59) |
setUTCMilliseconds() | Used to set the milliseconds in a Date object according to universal time (from 0-999) |
toSource() | Returns the source code of an object |
toString() | Used to convert a Date object to a string |
toGMTString() | Used to convert a Date object, according to Greenwich time, to a string |
toUTCString() | Used to convert a Date object, according to universal time, to a string |
toLocaleString() | Used to convert a Date object, according to local time, to a string |
UTC() | Starts with a date and returns the number of milliseconds from midnight of January 1, 1970 according to universal time |
valueOf() | Used to return the primitive value of a Date object |