Siebel eScript Language Reference > Siebel eScript Commands > Date and Time Methods >

getDate() Method


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

Syntax

dateVar.getDate()

Parameter
Description

Not applicable

 

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 7, the day part of the constructed Date object:

function Button2_Click ()
{
   var MyBirthdayDay = new Date("1958", "11", "7");
   TheApplication().RaiseErrorText("My birthday is on day " +
      MyBirthdayDay.getDate() + ".");
}

See Also

getDay() Method
getFullYear() Method
getHours() Method
getMinutes() Method
getMonth() Method
getSeconds() Method
getTime() Method
getYear() Method
setDate() Method

Siebel eScript Language Reference