Date.getDate | myDate.getDate() | Returns the day of the month from 1 to 31 according to local time. |
Date.getDay | myDate.getDay() | Returns the day of the week from (Sunday) to 6 (Saturday) according to local time. |
Date.getFullYear | myDate.getFullYear() | Returns the four-digit year according to local time. |
Date.getHours | myDate.getHours() | Returns the hour from (midnight) to 23 (11 p.m.) according to local time. |
Date.getMilliseconds | myDate.getMilliseconds() | Returns the milliseconds from to 999 according to local time. |
Date.getMinutes | myDate.getMinutes() | Returns the minutes from to 59 according to local time. |
Date.getMonth | myDate.getMonth() | Returns the month from (January) to 11 (December) according to local time. |
Date.getSeconds | myDate.getSeconds() | Returns the seconds from to 59 according to local time. |
Date.getTime | myDate.getTime() | Returns the number of milliseconds since midnight January 1, 1970, universal time. |
Date.getTimezoneOffset | mydate.getTimezoneOffset() | Returns the difference, in minutes, between the computer's local time and the universal time. |
Date.getUTCDate | myDate.getUTCDate() | Returns the day (date) of the month from 1 to 31 according to universal time. |
Date.getUTCDay | myDate.getUTCDay() | Returns the day of the week from (Sunday) to 6 (Saturday) according to universal time. |
Date.getUTCFullYear | myDate.getUTCFullYear() | Returns the four-digit year according to universal time. |
Date.getUTCHours | myDate.getUTCHours() | Returns the hour from (midnight) to 23 (11 p.m.) according to universal time. |
Date.getUTCMilliseconds | myDate.getUTCMilliseconds() | Returns the milliseconds from to 999 according to universal time. |
Date.getUTCMinutes | myDate.getUTCMinutes() | Returns the minutes from to 59 according to universal time. |
Date.getUTCMonth | myDate.getUTCMonth() | Returns the month from (January) to 11 (December) according to universal time. |
Date.getUTCSeconds | myDate.getSeconds() | Returns the seconds from to 59 according to universal time. |
Date.getYear | myDate.getYear() | Returns an integer which, when added to 1900, gives the year according to local time. For instance, a return value of means 1900. |
Date.setDate | myDate.setDate( date ) | Sets the day of the month to date , an integer from 1 to 31 , according to local time. Returns the new time in milliseconds. |
Date.setFullYear | myDate.setFullYear ( year [, month [, date ]] ) | Sets a four-digit year , and optionally also the month from (January) to 11 (December), and the date from 1 to 31 , all according to local time. Returns the new time in milliseconds. |
Date.setHours | myDate.setHours( hour [, minute [, second [, millisecond ]]]) | Sets the hour , from (midnight) to 23 (11 p.m.); and optionally minute from to 59 ; second from to 59 ; and millisecond from to 999 , all according to local time. Returns the new time in milliseconds. |
Date.setMilliseconds | myDate.setMilliseconds ( millisecond ) | Sets the milliseconds according to local time from to 999 . Returns the new time in milliseconds. |
Date.setMinutes | myDate.setMinutes ( minute [, second [, millisecond ]]) | Sets minute from to 59 ; and optionally second from to 59 ; and millisecond from to 999 , all according to local time. Returns the new time in milliseconds. |
Date.setMonth | myDate.setMonth ( month [, date ]) | Sets the month from (January) to 11 (December) and optionally the date from 1 to 31 , both according to local time. Returns the new time in milliseconds. |
Date.setSeconds | myDate.setSeconds ( second [, millisecond ])) | Sets the second from to 59 , and optionally the millisecond from to 999 , both according to local time. Returns the new time in milliseconds. |
Date.setTime | myDate.setTime ( millisecond ) | Sets the date, expressed in milliseconds since midnight on January 1, 1970. Returns the same number you give it. |
Date.setUTCDate | myDate.setUTCDate ( date ) | Sets the date according to universal time, from 1 to 31 . Returns the new time in milliseconds. |
Date.setUTCFullYear | myDate.setUTCFullYear ( year [, month [, date ]]) | Sets a four-digit year , and optionally also the month from (January) to 11 (December), and the date from 1 to 31 , all according to universal time. |
Date.setUTCHours | myDate.setUTCHours ( hour [, minute [, second [, millisecond ]]]) | Sets the hour , from (midnight) to 23 (11 p.m.); and optionally minute from to 59 ; second from to 59 ; and millisecond from to 999 , all according to universal time. Returns the new time in milliseconds. |
Date.setUTCMilliseconds | myDate.setUTCMilliseconds ( millisecond ) | Sets millisecond from to 999 according to universal time. Returns the new time in milliseconds. |
Date.setUTCMinutes | myDate.setUTCMinutes ( minute [, second [, millisecond ]]) | Sets minute from to 59 ; and optionally second from to 59; and millisecond from to 999 , all according to universal time. Returns the new time in milliseconds. |
Date.setUTCMonth | myDate.setUTCMonth ( month [, date ]) | Sets the month from (January) to 11 (December) and optionally the date from 1 to 31 , both according to universal time. Returns the new time in milliseconds. |
Date.setUTCSeconds | myDate.setUTCSeconds ( second [, millisecond ])) | Sets the second from to 59 , and optionally the millisecond from to 999 , both according to universal time. Returns the new time in milliseconds. |
Date.setYear | myDate.setYear( year ) | Determines the value that will be retrieved by Date.getYear() . The year argument is an integer. If year is a one- or two-digit number, Date.getYear() retrieves that number. If year is three or more digits, Date.getYear() retrieves that number minus 1900. |
Date.toString | myDate.toString() | Returns a string representing the date and time in this format: Sat May 4 12:42:19 GMT-0700 2002 . |
Date.UTC | Date.UTC( year, month [, date [, hour [, minute [, second [, millisecond ]]]]]) | Returns the number of milliseconds between midnight on January 1, 1970, universal time, and the date/time specified in the arguments year, month, date, hour , minute, second , and millisecond . |