Javascript Reference
Categories: Date

javascript Date setUTCMonth( )

@March 15, 2008, 1:22 a.m.
setUTCMonth( )Firefox/Netscape/NN 4 IE 4 ECMA 1  

setUTCMonth(monthInt)

  

Sets the month value for an instance of the Date object but in the UTC time stored internally by the browser. That this method's values are zero-based frequently confuses scripters at first.

 
Parameters
 
monthInt

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 UTC date in milliseconds.


Powered by Linode.