getMonth()
Top  Previous  Next


Syntax
DateObj.getMonth()

Arguments
none

Returns
an integer

Description
Method; returns an integer (from 0 to 11; 0 being January, 1 being February, etc.) representing the current second of the Date Object according to Local Time.

Sample

onFrame (1) {
theDate = new Date();
trace(theDate.getMonth());
}

// If it is March on your system clock - "2" will be returned in the debug window.

Description
Method; returns the month (0 for January, 1 for February, and so on) of the specified Date object, according to local time. Local time is determined by the operating system on which the Flash Player is running.