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

 

JScript Date Object getUTCFullYear Method

Returns the year stored in a Date object according to Universal Coordinated Time (UTC).

Syntax: JScript Date Object getUTCFullYear Method

objDate.getUTCFullYear()

Arguments: JScript Date Object getUTCFullYear Method

objDate

The name of a Date object. Required.

Remarks: JScript Date Object getUTCFullYear Method

To get the year according to local time, use the getFullYear method.

The getUTCFullYear method returns the year as an absolute number. This avoids problems with dates occurring at the end of the 20th century.

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