AddYears()
DateTime::AddYears(int) const method
Returns a new instance of the DateTime class representing the date and time value equal to that represented by the current object with the year component increased by the specified number.
DateTime System::DateTime::AddYears(int value) const
Arguments
Parameter | Type | Description |
---|---|---|
value | int | The number of years to add; the value can be positive or negative |
Return Value
A new instance of the DateTime class representing the date and time value equal to that represented by the current object with the year component increased by value
See Also
- Class DateTime
- Namespace System
- Library Aspose.Slides