/

HTML / CSS / JavaScript Tutorial

JavaScript Date method: getYear()

[this page | pdf | back links]

Depreciated. Use getFullYear() instead.

 

It has the following syntax (with no parameters):

 

date.getYear()

 


NAVIGATION LINKS
Contents | Prev | Next | JavaScript Dates


Desktop view | Switch to Mobile