Set Year Method
The Set Year method sets the year of a date object as a two digit or four digit year that you specify.
Format
dateVar.setYear(year)
The following table describes the arguments for the Set Year method.
Argument | Description |
---|---|
year |
The year to set in dateVar. You can write code that uses one of the following values in the year argument:
|