How to Get the Full Year In JavaScript, the .getFullYear() method returns the year of the given date. const today = new Date() const fullYear = today.getFullYear() console.log(fullYear) // 2022 link