Microsoft® JScript
getMonth Method

See Also

Language Reference 

Description

Retrieves the month value of the Date object.

Syntax

objDate.getMonth( )

Remarks
The getMonth 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" is stored in a Date object, getMonth returns 0.


© 1996 by Microsoft Corporation.

Casa de Bender