Javascript Reference
Categories: Date

javascript Date setMonth( )

@March 15, 2008, 1:22 a.m.
setMonth( )Firefox/Netscape/NN 2 IE 3 ECMA 1  



Sets the month value for the date of an instance of the Date object. That this method's values are zero-based frequently confuses scripters at first.


Zero-based integer. January is 0, February is 1, and December is 11. Assigning higher values increases the object to the succeeding year.

Returned Value

New date in milliseconds.

Powered by Linode.