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