Noda Time
PlusYears Method (years)
NamespacesNodaTimeLocalDatePlusYears(Int32)

[This is preliminary documentation and is subject to change.]

Returns a new LocalDate representing the current value with the given number of years added.
Declaration Syntax
C#Visual BasicVisual C++
public LocalDate PlusYears(
	int years
)
Public Function PlusYears ( _
	years As Integer _
) As LocalDate
public:
LocalDate PlusYears(
	int years
)
Parameters
years (Int32)
The number of years to add
Return Value
The current value plus the given number of years.
Remarks
If the resulting date is invalid, lower fields (typically the day of month) are reduced to find a valid value. For example, adding one year to February 29th 2012 will return February 28th 2013; subtracting one year from February 29th 2012 will return February 28th 2011.

Assembly: NodaTime (Module: NodaTime.dll) Version: 1.2.0.0 (1.2.0)