Noda Time
PlusMonths Method (months)
NamespacesNodaTimeLocalDateTimePlusMonths(Int32)

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

Returns a new LocalDateTime representing the current value with the given number of months added.
Declaration Syntax
C#Visual BasicVisual C++
public LocalDateTime PlusMonths(
	int months
)
Public Function PlusMonths ( _
	months As Integer _
) As LocalDateTime
public:
LocalDateTime PlusMonths(
	int months
)
Parameters
months (Int32)
The number of months to add
Return Value
The current value plus the given number of months.
Remarks

This method does not try to maintain the year of the current value, so adding four months to a value in October will result in a value in the following February.

If the resulting date is invalid, the day of month is reduced to find a valid value. For example, adding one month to January 30th 2011 will return February 28th 2011; subtracting one month from March 30th 2011 will return February 28th 2011.

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