JavaScript Date_create Guide
Creating and parsing dates with the Date constructor. Understanding month indexing and timezone behavior is essential. The guide walks through Creating Dates. `new Date()` — now. `new Date(2026, 5, 8)` — June 8, 2026 (month is 0-indexed!). `new Date("2026-06-08")` — ISO string parse. `new Date(timestamp)` — from ms. `Date.now()` — current timestamp ms. `new Date(Date.UTC(2026, 5, 8))` — UTC date. Months: 0=Jan, 11=Dec. Days: 1-31. The guide is organized into 1 sections that build on each other, each pairing a prose explanation with runnable code. Related guides: Arrays, Strings, Numbers, Math, Date. This is one of 145 JavaScript guides on JS Reference — see the full list on the guides page. Practice what you learn in the JavaScript playground, and look up any unfamiliar term in the JavaScript glossary.