System Namespace DateTime Structure
Adds the specified number of months to the value of this instance.
[ VB ]
<Serializable>
Public Function AddMonths ( _
ByVal months As Integer _
} As DateTime
[ C# ]
[ Serializable ]
public DateTime AddMonths (
int months
};
[ C++ ]
[ Serializable ]
public: DateTime AddMonths (
int months
};
[ JScript ]
public Serializable
function AddMonths (
months : int
} : DateTime;
- months
- A number of months. The months parameter can be negative or positive.
A DateTime whose value is the sum of the date and time represented by this instance and months.
This method does not change the value of this DateTime. Instead, a new DateTime is returned whose value is the result of this operation.
DateTime Members Double