
Date.toString() Method
This is the Title of the Book, eMatter Edition
Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved.
518
|
ActionScript Language Reference
month An optional integer from 0 (January) to 11 (December), not from 1 to 12,
representing the new month of the year of
date.
day An optional integer from 1 to 31, representing the new day of the month of
date.
Returns
An integer representing the number of milliseconds between the new date and midnight,
January 1, 1970.
Description
setYear() is identical to setFullYear(), except that it interprets one- and two-digit years as
being relative to 1900, whereas setFullYear() interprets them as being relative to 0 A.D.
See Also
Date.getYear(), Date.setFullYear()
Date.toString() Method
a human-readable string representing the date
Flash 5
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
Date.UTC() Class Method
retrieve the number of milliseconds between January 1, 1970 and a supplied UTC date
Flash 5
date.UTC(year, month, day, hours, minutes, seconds ...