Siebel eScript Language Reference > Siebel eScript Commands > Universal Time Methods >

getUTCFullYear() Method


This method returns the UTC year of a Date object.

Syntax

dateVar.getUTCFullYear()

Returns

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

Example

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

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

See Also

getFullYear() Method
setFullYear() Method
setUTCFullYear() Method

Siebel eScript Language Reference Copyright © 2007, Oracle. All rights reserved.