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

getUTCDate() Method


This method returns the UTC day of the month of a Date object.

Syntax

dateVar.getUTCDate()

Returns

The UTC day of the month of dateVar.

Usage

This method returns the UTC day of the month of dateVar as a number from 1 to 31. The first day of a month is 1; the last is 28, 29, 30, or 31.

Example

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

var aDate = new Date("May 1, 2005 13:24:35");
TheApplication().RaiseErrorText("Local day of the month is " +
   aDate.getHours() +"\nGMT day of the month is " +
   aDate.getUTCHours());

See Also

getDate() Method
setUTCDate() Method

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