|
Retrieves the month value stored in a Date object according to Universal Coordinated Time (UTC).
objDate.getUTCMonth()
objDate
The name of a Date object. Required.
To get the month in local time, use the getMonth method.
The getUTCMonth method returns an integer between 0 and 11 indicating the month stored in the Date object. The integer returned is not the traditional number used to indicate the month-it is one less. If "Jan 5, 1996 08:47:00.0" is stored in a Date object, getUTCMonth returns 0.
Copyright 2002 Sun Microsystems, Inc. All rights reserved. Legal Notice.