Date.toString( ) Method

ActionScript for Flash MX: The Definitive Guide, 2nd Edition
By Colin Moock
Chapter 18.  ActionScript Language Reference
Date.toString( ) Method Flash 5

a human-readable string representing the date
date.toString()

Returns

A string giving the time and date of date in human-readable format, including the UTC (GMT) offset. To compose customized representations of the date, use the methods for retrieving the day, hours, minutes, and so on, and concatenate those values to form your own strings, as shown earlier in the Example under Date class.

Example

trace (myDate.toString()); // Displays a date in the format:                             // Wed Sep 15 12:11:33 GMT-0400 1999


    ActionScript for Flash MX. The Definitive Guide
    ActionScript for Flash MX: The Definitive Guide, Second Edition
    ISBN: 059600396X
    EAN: 2147483647
    Year: 2002
    Pages: 780
    Authors: Colin Moock

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net