Knowledge Walls
Laya
Hyderabad, Andhra Pradesh, India
Date.prototype.getFullYear() Method in Date Class of Javascript Syntax with Examples
2524 Views
Usage 
The getFullYear() method is used to return the year for mentioned date based on local time.
Syntax  
dateObject.getFullYear()
Example
var today = new Date();
var year = today.getFullYear();
document.write(year);
Output 
2014
Best Lessons of "Javascript Syntax with Examples"
Top lessons which are viewed more times.
  Copyright © 2014 Knowledge walls, All rights reserved
KnowledgeWalls
keep your tutorials and learnings with KnowledgeWalls. Don't lose your learnings hereafter. Save and revise it whenever required.
Click here for more details