date(a) + year(b)
This function adds b years to the given date a. If b is negative the number of years are subtracted.
Parameters
Parameter |
Description |
a |
Date. |
b |
Years to add. |
Examples
Parameter a |
Parameter b |
Result |
2005-01-01 |
1 |
2006-01-01 |
2005-01-01 |
-1 |
2004-01-01 |