Getter (Accessor) MethodsThese methods DO NOT modify the Date object |
getDate() | Returns the locale specific day of the month (1-31) for the specified date. |
getDay() | Returns the locale specific day of the week (0-6) for the specified date. |
getFullYear() | Returns the locale specific year (CCYY) for the specified date. |
getHours() | Returns the locale specific hour of the day (0-23) for the specified date. |
getMilliseconds() | Returns the locale specific milliseconds (0-999) for the specified date. |
getMinutes() | Returns the locale specific minute of the hour (0-59) for the specified date. |
getMonth() | Returns the locale specific month of the year (0-11) for the specified date. |
getSeconds() | Returns the locale specific second of the minute (0-59) for the specified date. |
getTime() | Returns the number of milliseconds since 1 January 1970 00:00:00 UTC . |
getTimezoneOffset() | Returns the locale specific time zone offset from UTC in minutes. |
getUTCDate() | Returns the UTC day of the month (1-31) for the specified date. |
getUTCDay() | Returns the UTC day of the week (0-6) for the specified date. |
getUTCFullYear() | Returns the UTC year (CCYY) for the specified date. |
getUTCHours() | Returns the UTC hour of the day (0-23) for the specified date. |
getUTCMilliseconds() | Returns the UTC milliseconds (0-999) for the specified date. |
getUTCMinutes() | Returns the UTC minute of the hour (0-59) for the specified date. |
getUTCMonth() | Returns the UTC month of the year (0-11) for the specified date. |
getUTCSeconds() | Returns the UTC second of the minute (0-59) for the specified date. |
toDateString() | Returns a string of the date portion of the specified date. |
toLocaleDateString() | Returns a locale specific string of the date portion of the specified date. |
toLocaleString() | Returns a locale specific string of the specified date. |
toLocaletimeString() | Returns a locale specific string of the time portion of the specified date. |
toString() | Returns a locale specific string representation of the specified date. |
toTimeString() | Returns a string of the time portion of the specified date. |
toUTCString() | Returns a UTC specific string of the specified date. |
valueOf() | Returns the primitive value of a Date object. |
Setter (Mutator) MethodsThese methods DO modify the Date object |
setDate() | Sets the locale specific day of the month (1-31) for the specified date |
setFullYear() | Sets the locale specific year for the specified date. |
setHours() | Sets the locale specific hour of the day (0-23) for the specified date. |
setMilliseconds() | Sets the locale specific milliseconds (0-999) for the specified date. |
setMinutes() | Sets the locale specific minute of the hour (0-59) for the specified date. |
setMonth() | Sets the locale specific month of the year (0-11) for the specified date. |
setSeconds() | Sets the locale specific second of the minute (0-59) for the specified date. |
setTime() | Sets the locale specific number of milliseconds since 1 January 1970 00:00:00 UTC . |
setUTCDate() | Sets the UTC day of the month (1-31) for the specified date. |
setUTCFullYear() | Sets the UTC year (CCYY) for the specified date. |
setUTCHours() | Sets the UTC specific hour of the day (0-23) for the specified date. |
setUTCMilliseconds() | Sets the UTC milliseconds (0-999) for the specified date. |
setUTCMinutes() | Sets the UTC minute of the hour (0-59) for the specified date. |
setUTCMonth() | Sets the UTC month of the year (0-11) for the specified date. |
setUTCSeconds() | Sets the UTC second of the minute (0-59) for the specified date. |