Date.setFullYear( ) Method

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

assign the century and year in four-digit format
date.setFullYear(year, month, day)

Arguments

year

A four-digit integer, representing the new year for date (for example, 1999 or 2000).

month

An optional integer from 0 (January) to 11 (December), not 1 to 12, representing the new month of the year of date. Defaults to 0 if not specified.

day

An optional integer from 1 to 31, representing the new day of the month of date. Defaults to 1 if not specified.

Returns

An integer representing the number of milliseconds between the new date and midnight, January 1, 1970.

See Also

Date.getFullYear( ), Date.setYear( )



    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