JavaScript getFullYear()

The getFullYear() method returns the full year of a date: