getMinutes (Date.getMinutes method)
public getMinutes() : Number
Returns the minutes (an integer from 0 to 59) of the specified Date object, according to local
time. Local time is determined by the operating system on which Flash Player is running.
Availability: ActionScript 1.0; Flash Player 5
Returns
- An integer.
Number
Example
The following example uses the constructor to create a Date object based on the current time,
and uses the
getMinutes()
var my_date:Date = new Date();
trace(my_date.getMinutes());
getMonth (Date.getMonth method)
public getMonth() : Number
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 Flash
Player is running.
Availability: ActionScript 1.0; Flash Player 5
Returns
- An integer.
Number
Example
The following example uses the constructor to create a Date object based on the current time
and uses the
getMonth()
var my_date:Date = new Date();
trace(my_date.getMonth());
The following example uses the constructor to create a Date object based on the current time
and uses the
getMonth()
display the name of the month.
var my_date:Date = new Date();
trace(my_date.getMonth());
trace(getMonthAsString(my_date.getMonth()));
function getMonthAsString(month:Number):String {
method to return the minutes value from that object:
method to return the month value from that object:
method to display the current month as a numeric value, and
Date
485
Need help?
Do you have a question about the FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE and is the answer not in the manual?