Siebel eScript Language Reference > Methods Reference > UTC Methods >

Get UTC Full Year Method


The Get UTC Full Year year method returns the UTC year of a date object as a four digit number.

Format

dateVar.getUTCFullYear()

Example

The following example displays 2005, the year portion of the date, followed by the GMT equivalent, which can include the same value:

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

Siebel eScript Language Reference Copyright © 2018, Oracle and/or its affiliates. All rights reserved. Legal Notices.