Date.tostring() - MACROMEDIA FLASH MX 2004-ACTIONSCRIPT LANGUAGE Reference

Actionscript language reference
Table of Contents

Advertisement

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

Advertisement

Table of Contents
loading
Need help?

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

This manual is also suitable for:

Flash mx

Table of Contents