Sun Chili!Soft ASP Sun Chili!Soft
ASP Sun Microsystems

 

JScript Date Object getFullYear Method

Returns the year stored in the Date object according to local time.

Syntax: JScript Date Object getFullYear Method

objDate.getFullYear()

Arguments: JScript Date Object getFullYear Method

objDate

The name of a Date object.

Remarks: JScript Date Object getFullYear Method

To get the year according to Universal Coordinated Time (UTC), use the getUTCFullYear method.

The getFullYear method returns the year as an absolute number. For example, the year 1976 is returned as 1976. This avoids problems with dates occurring at the end of the 20th century.

Copyright 2002 Sun Microsystems, Inc. All rights reserved. Legal Notice.