Date.setUTCMonth( ) Method

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

assign the month of the year (UTC time)
date.setUTCMonth(month)

Arguments

month

An integer from 0 (January) to 11 (December), not from 1 to 12, representing the new month of the year of date, in UTC time.

Returns

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

Usage

Be careful not to assume that 1 is January! Months start at 0, not 1.



    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