Edit & Run »
The getFullYear() method returns the full year of a date: