DateTimeUtil::addYears Method [AX 2012]

Adds the specified number of years to a utcdatetime value.

client server public static utcdatetime addYears(utcdatetime t, int value)

Run On

Called

Parameters

t
Type: utcdatetime
A utcdatetime value to which to add years.
value
Type: int
The number of years to add.

Return Value

Type: utcdatetime
A new utcdatetime value.

If the value of the value parameter is negative, years will be subtracted.

Show: