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