D-E > Date.toString |  |

Date.toString

date.tostring, tostring, date

Availability

Flash Player 5.

Usage

    myDate.toString()

Parameters

None.

Returns

A string.

Description

Method; returns a string value for the specified date object in a readable format, and returns the new time in milliseconds.

Example

The following example returns the information in the `dateOfBirth` Date object as a string.

    var dateOfBirth = new Date(74, 7, 7, 18, 15);
    trace (dateOfBirth.toString());

Output (for Pacific Standard Time):

    Wed Aug 7 18:15:00 GMT-0700 1974