Bookshelf Home | Contents | Index | Search | PDF |
Siebel eScript Language Reference > Siebel eScript Commands > The Date Object >
GetDate() Method
This method returns the day of the month of a Date object.
Syntax
dateVar.getDate()
Returns
The day of the month of dateVar as an integer from 1 to 31.
Usage
This method returns the day of the month of the Date object specified by dateVar, as an integer from 1 to 31. The first day of a month is 1; the last is 28, 29, 30, or 31.
Example
This example returns
14
, the month part of the constructed Date object:function Button2_Click ()
{
var valentinesDay = new Date("2001", "1", "14");
TheApplication().RaiseErrorText("Valentine's Day is on day " +
valentinesDay.getDate() + ".");
}See Also
getDay() Method, getFullYear() Method, getHours() Method, getMinutes() Method, getMonth() Method, getSeconds() Method, getTime() Method, getYear() Method, and setDate() Method
Bookshelf Home | Contents | Index | Search | PDF |
Siebel eScript Language Reference Published: 18 April 2003 |