Home / Javascript Tips Generated By ChatGPT / Working with Dates in Javascript Create and manipulate dates with the Date object. Source Code let now = new Date(); console.log(now.getFullYear()); // Gets the current year