JavaScript Date Guide
The Date object handles dates and times in JavaScript. Dates are stored as milliseconds since January 1, 1970 UTC (the Unix epoch). The guide walks through Creating Dates, Getting Date Components, Setting Date Components, Date Formatting. Use `new Date()`, `new Date(timestamp)`, `new Date(dateString)`, or `new Date(year, month, day, hours, minutes, seconds, ms)`. Month is 0-indexed (0 = January). `getFullYear()`, `getMonth()`, `getDate()`, `getDay()`, `getHours()`, `getMinutes()`, `getSeconds()`, `getMilliseconds()` extract date components. UTC variants (e.g., `getUTCFullYear()`) return UTC time. The guide is organized into 4 sections that build on each other, each pairing a prose explanation with runnable code. Browse the individual methods covered by this guide in the Date category. Key APIs covered include Date.now(), Date.parse(), Date.UTC(), Date.prototype.getFullYear(), Date.prototype.getMonth(), Date.prototype.getDate(). Related guides: Arrays, Strings, Numbers, Math, Objects. This is one of 145 JavaScript guides on JS Reference — see the full list on the guides page.