/

HTML / CSS / JavaScript Tutorial

JavaScript Date method: getFullYear()

[this page | pdf | back links]

The getFullYear() method (when applied to a JavaScript date) returns the year.

 

It has the following syntax (with no parameters):

 

date.getFullYear()

 


NAVIGATION LINKS
Contents | Prev | Next | JavaScript Dates


Desktop view | Switch to Mobile