JavaScript Dates

The getFullYear() Method

Return the full year of a date object: