What day is it?
Birthdays, deadlines, "posted 3 days ago" — apps need dates. JavaScript's Date object stores a moment in time and can tell you its year, month, day and more.
Making and reading dates
const now = new Date();
console.log(now.getFullYear());
const dashain = new Date(2026, 9, 21);
console.log(dashain.getMonth());
console.log(dashain.getDate());
console.log(dashain.getDay());
console.log(dashain.toLocaleDateString("en-GB"));