Date.setFullYear
setFullYear – Set the year, according to local time (four digits).
Description
Date.setFullYear(integer year)
Parameters
Name | Description | Type | Default | Optional |
---|---|---|---|---|
year | integer | No |
Return values
Integer. The new timestamp.
Examples
Example #1 – setFullYear example