date.AddYears(datetime : str, years : num) : str
Adds the specified number of years to a date and returns the result. The number of years can be positive or negative.
1.9.1 or later.
| Name | Type | Description |
| datetime | str | The date to which to add years. |
| years | num | The number of years to add. |
A new date.
| Output | ||
| Sat, 25 May 1912 08:08:22 GMT | |
| Fri, 01 Jan 2100 00:00:00 GMT |
| Images 0 | ||
|---|---|---|
| No images to display in the gallery. |
Copyright © 2011 MindTouch, Inc. Powered by