Name

Date.getUTCMonth( ) Method — the month of the year (UTC time)

Availability

Flash 5

Synopsis

date.getUTCMonth( )

Returns

An integer from 0 (January) to 11 (December), not 1 to 12, representing the month of the year of date, where date is treated as a UTC time.

Usage

Be careful not to assume that 1 is January! The return value of getUTCMonth( ) starts at 0, not 1.

Get ActionScript: The Definitive Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.