Siebel eScript Language Reference > Siebel eScript Commands > Date and Time Methods >
getYear() Method
This method returns the year portion of a Date object as the offset from the base year 1900. Syntax
dateVar.getYear()
Returns
This method returns the year portion of dateVar as the offset from the base year 1900. The offset is positive for years after 1900 and is negative for years before 1900. Usage
This method returns the year portion of dateVar as the offset from the base year 1900. For example, if the value of dateVar is a date in the year 2004, then dateVar.getYear() = 104. See Also
getFullYear() Method getUTCFullYear() Method setYear() Method
|