Javascript Methods JavaScript Reference

Note:
Returns the four-digit year.
    
Syntax:
    
dateName.getFullYear()