Date > Date.toString

Date.toString

Syntax

myDate.toString();

Arguments

None.

Description

Method; returns a string value for the specified date object in a readable format.

Player

Flash 5 or later.

Example

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

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

Output (for Pacific Standard Time):

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