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

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 31

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
setUTCMonth() Method

Siebel eScript Language Reference