Table of Contents

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( )


Table of Contents