javascript Date setYear( )
| setYear( ) | NN 2 IE 3 ECMA n/a |
setYear(yearInt) | |
|
Sets the year of an instance of a Date object. Use setFullYear( ) if the browser versions you support allow it. Note that this method is not an ECMA-supported method, whereas setFullYear( ) is. |
|
| Parameters | |
|
|
| Returned Value | |
New date in milliseconds. |
|
Previous: javascript Date toDateString( )
488,Nickname,Homepage or email,Comments here,Add comment
