AdjustYear (NotesDateTime - LotusScript®)

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

Defined in

NotesDateTime

Syntax

Call notesDateTime .AdjustYear( n% [, preserveLocalTime ] )

Parameters

n%

Integer. The number of years by which to increment the date-time. Can be positive or negative.

preserveLocalTime

Boolean. Optional. Affects adjustments that cross daylight-saving boundaries. Specify True to increment or decrement the GMT time by one hour such that a 24-hour adjustment yields the same local time in the new day. If this parameter is False or omitted, GMT time remains as adjusted and local time gains or loses an hour.

Usage

The number of years by which you increment a NotesDateTime object can cause the century to change. If this happens, the year is represented with four digits instead of two, such as 08/18/2001.

Example