JavaScript setMonth()

The setMonth() method sets the mont of a date object.

Note that months count from 0. December is month 11: