Date.toString()
Availability
Flash Player 5.
Usage
my_date.toString() : String
Parameters
None.
Returns
A string.
Description
Method; returns a string value for the specified date object in a readable format.
Example
The following example returns the information in the
var dateOfBirth_date:Date = new Date(74, 7, 12, 18, 15);
trace (dateOfBirth_date);
trace (dateOfBirth_date.toString());
/*
The output from the trace statements will be in local time and will vary
accordingly. For Pacific Daylight Time the output will be seven hours
earlier than universal time:
Mon Aug 12 18:15:00 GMT-0700 1974
Mon Aug 12 18:15:00 GMT-0700 1974
*/
276
Chapter 2: ActionScript Language Reference
Date object as a string:
dateOfBirth_date
Need help?
Do you have a question about the FLASH MX 2004-ACTIONSCRIPT LANGUAGE and is the answer not in the manual?
Questions and answers