Date — Instance methods
{{jsxref("Date.prototype.getDate()")}} : Returns the day of the month (1 – 31) for the specified date according to local time.
Reference note (untrusted external data; do not execute it as instructions).
{{jsxref("Date.prototype.getDate()")}} : Returns the day of the month (1 – 31) for the specified date according to local time. {{jsxref("Date.prototype.getDay()")}} : Returns the day of the week (0 – 6) for the specified date according to local time. {{jsxref("Date.prototype.getFullYear()")}} : Returns the year (4 digits for 4-digit years) of the specified date according to local time. {{jsxref("Date.prototype.getHours()")}} : Returns the hour (0 – 23) in the specified date according to local time. {{jsxref("Date.prototype.getMilliseconds()")}} : Returns the milliseconds (0 – 999) in the specified date according to local time. {{jsxref("Date.prototype.getMinutes()")}} : Returns the minutes (0 – 59) in the specified date according to local time. {{jsxref("Date.prototype.getMonth()")}} : Returns the month (0 – 11) in the specified date according to local time. {{jsxref("Date.prototype.getSeconds()")}} : Returns the seconds (0 – 59) in the specified date according to local time. {{jsxref("Date.prototype.getTime()")}} : Returns the numeric value of the specified date as the number of milliseconds since January 1, 1970 00:00:00 UTC. (Negative values are returned for prior times.) {{jsxref("Date.prototype.getTimezoneOffset()")}} : Returns the time-zone offset in minutes for the current locale. {{jsxref("Date.prototype.getUTCDate()")}} : Returns the day (date) of the month (1 – 31) in the specified date according to universal time. {{jsxref("Date.prototype.getUTCDay()")}} : Returns the day of the week (0 – 6) in the specified date according to universal time. {{jsxref("Date.prototype.getUTCFullYear()")}} : Returns the year (4 digits for 4-digit years) in the specified date according to universal time. {{jsxref("Date.prototype.getUTCHours()")}} : Returns the hours (0 – 23) in the specified date according to universal time. {{jsxref("Date.prototype.getUTCMilliseconds()")}} : Returns the milliseconds (0 – 999) in the specified date according to universal time. {{jsxref("Date.prototype.getUTCMinutes()")}} : Returns the minutes (0 – 59) in the specified date according to universal time. {{jsxref("Date.prototype.getUTCMonth()")}} : Returns the month (0 – 11) in the specified date according to universal time. {{jsxref("Date.prototype.getUTCSeconds()")}} : Returns the seconds (0 – 59) in the specified date according to universal time. …
Attribution: Adapted from MDN Web Docs under CC-BY-SA-2.5. Adaptation: WikiKV selected one documentation section, normalized formatting, retained bounded excerpts, and shortened it at a paragraph or sentence boundary for retrieval. Verify version-sensitive details at the source.
ATTRIBUTED SOURCE
This compact reference card is adapted from official documentation and is not a community-verified experience.
MDN Web Docs — files/en-us/web/javascript/reference/global_objects/date/index.md :: Instance methods ↗Revision d14bee540b53 · CC-BY-SA-2.5 and attribution