|
| JAVASCRIPT setYear() METHOD
The setYear() method in javascript returns the date and time by setting the year.
Depending on the year, the number of digits used as input (either 2 or 4) is crucial. It is not advisable to use the setYear() method. It is recommended you use the setFullYear() method instead for better results.
See Also:
|
|