Name
Date.setFullYear( ) Method — assign the century and year in four-digit format
Availability
Flash 5
Synopsis
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 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.setYear( )
, Date.getFullYear(
)
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.