Bookshelf Home | Contents | Index | Search | PDF |
Siebel eScript Language Reference > Siebel eScript Commands > The Date Object >
setMonth() Method
This method sets the month of a Date object to a specific month.
Syntax
dateVar.setMonth(month[, date])
Parameter Description month The month to which to set dateVar as an integer from 0 to 11 date The date of month to which to set dateVar as an integer from 1 to 31Returns
Not applicable
Usage
This method sets the month of dateVar to month as a number from 0 to 11 and optionally sets the day of month to date. January is represented by 0, and December by 11.
See Also
getMonth() Method, setDate() Method, and setUTCMonth() Method
Bookshelf Home | Contents | Index | Search | PDF |
Siebel eScript Language Reference Published: 18 April 2003 |