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

setDate() Method


This method sets the day of a Date object to a specified day of the month.

Syntax

dateVar.setDate(dayOfMonth)

Parameter
Description
dayOfMonth
The day of the month to which to set dateVar as an integer from 1 through 31

Returns

Not applicable

Usage

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

See Also

GetDate() Method and setUTCDate() Method


 Siebel eScript Language Reference 
 Published: 18 April 2003