Javascript Reference
Categories: Date

javascript Date setFullYear( )

@March 15, 2008, 1:22 a.m.
setFullYear( )Firefox/Netscape/NN 4 IE 4 ECMA 1  

setFullYear(yearInt)

  

Assigns the year for an instance of the Date object.

 
Parameters
 
yearInt

Integer. Navigator 4 allows digits no lower than zero. Internet Explorer and NN 6 allow negative year values.

 
Returned Value

New date in milliseconds.


Powered by Linode.