JAVA/CORBA CLASSES

adjustMonth method
Example

Increments a date-time by the number of months you specify.

Defined in

DateTime

Syntax

public void adjustMonth(int n)
   throws NotesException

public void adjustMonth(int n, boolean preservelocaltime)
   throws NotesException

Parameters

int n


boolean preservelocaltime
Usage

If the DateTime object consists of only a time component, this method has no effect.

The number of months by which you increment a DateTime object can cause the year to be incremented. For example, if the adjustment is +12, the date component changes to the next calendar year.

Language cross-reference

AdjustMonth method in LotusScript NotesDateTime class

@Adjust function in formula language

Example
See Also