Previous PageNext Page

7.11.20 getYear Method

Retrieves the year stored in the specified Date object.
 

Syntax

objDate.getYear()

Arguments

objDate
The name of a Date object. Required.

Remarks

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 © 2000 Chili!Soft

Previous PageTop Of PageNext Page