myDate.setFullYear( year, [ month ], [ day ] ) in ECMAScript 262
Set the year, expressed in the local timezone.
Arguments
name | type | description |
---|---|---|
year | Number | The new year number, expressed |
month | Number | [optional] The new month number, expresse |
day | Number | [optional] The new day number, expressed< |
- Return Type
- Number
Description
If the optional parameters are omitted, they are left unchanged in the date object.