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

getUTCDate() Method


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

Syntax

dateVar.getUTCDate()

Parameter
Description
Not applicable
 

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, 2001 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 and setUTCDate() Method


 Siebel eScript Language Reference 
 Published: 18 April 2003