JavaScript Date getFullYear()
JavaScript Date getFullYear()
The getFullYear() method is used to return the full year 4 digits of a date.
Syntax:-
Its syntax is:- Date.getFullYear()
Return:-
Its return is:- the year of the date in 4 digits