Work with dates
The Date object plus Intl.DateTimeFormat covers most display needs without a library.
JavaScript · Work with datesBeginner
const d = new Date('2026-11-03T14:30:00Z');
d.getFullYear(); // 2026
d.getMonth(); // 10 (months start at 0!)
d.getDate(); // 3
const nice = new Intl.DateTimeFormat('en-GB', { day: 'numeric', month: 'long', year: 'numeric', timeZone: 'UTC' }).format(d);
const iso = d.toISOString().slice(0, 10); // '2026-11-03'
const tomorrow = new Date(d);
tomorrow.setDate(d.getDate() + 1);dateIntlformat