Javascript Reference
Categories: Date

javascript Date getUTCMonth( )

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


Returns a zero-based integer corresponding to the month value for the date specified by 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.



Returned Value

Integer between 0 and 11. January is 0, February is 1, and December is 11.

Powered by Linode.