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

 

JScript Date Object getYear Method

Retrieves the year stored in the specified Date object.

Syntax: JScript Date Object getYear Method

objDate.getYear()

Arguments: JScript Date Object getYear Method

objDate

The name of a Date object. Required.

Remarks: JScript Date Object getYear Method

This method is obsolete, and is provided for backwards compatibility only. Use the getFullYear method instead.

The year is an integer value and is returned as the difference between the stored year and 1900. For example, 1996 is returned as 96, and 2025 is returned as 125.

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