Siebel eScript Language Reference > Siebel eScript Commands > The Date Object >

getUTCFullYear() Method


This method returns the UTC year of a Date object.

Syntax

dateVar.getUTCFullYear()

Parameter
Description
Not applicable
 

Returns

The UTC year of dateVar as a four-digit number.

Example

This code fragment displays 2001, the year portion of the date, followed by the GMT equivalent, which may be the same.

var aDate = new Date("January 1, 2001 13:24:35");
TheApplication().RaiseErrorText("Local year is " + aDate.getYear() +
   "\nGMT year is " + aDate.getUTCFullYear());

See Also

getFullYear() Method, setFullYear() Method, and setUTCFullYear() Method


 Siebel eScript Language Reference 
 Published: 18 April 2003