This documentation is archived and is not being maintained.
getMonth Method
Visual Studio 2010
Returns the month value in the Date object using local time.
function getMonth() : Number
To get the month value using Coordinated Universal Time (UTC), use the getUTCMonth method.
The getMonth method returns an integer between 0 and 11 indicating the month value 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" is stored in a Date object, getMonth returns 0.
Show: