Name
Date.getUTCMonth( ) — return the month of the year (universal time)
Availability
JavaScript 1.2; JScript 3.0; ECMAScript v1
Synopsis
date
.getUTCMonth( )
Returns
The month of the year that results when
date
is expressed in universal time. The
return value is an integer between 0 ( January) and 11 (December).
Note that the Date object represents the first day of the month as 1
but represents the first month of the year as 0.
Get JavaScript: The Definitive Guide, Fourth Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.