SWiSH Player Support
SWF5 or later - Supported Internally
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.