Get Full Year Method

The Get Full Year method returns the year of a date object as a number with four digits.

Format

dateVar.getFullYear()

For examples, see the following topics: