-
Notifications
You must be signed in to change notification settings - Fork 26
AddYears
Shaun Lawrence edited this page Aug 13, 2020
·
2 revisions
Returns the supplied date/time with the specified number of years added.
AddYears(date, numberOfYears)
The date/time that will have the numberOfYears
added.
Type | DateTime |
Required | Yes |
The number of years to add to the date
.
Type | Double |
Required | Yes |
AddYears(#today#, 2)
Adds 2 years to the current date/time.
AddYears(#today#, -2)
Subtracts 2 years from the current date/time.
- AddDays
- AddHours
- AddMilliseconds
- AddMinutes
- AddMonths
- AddSeconds
- AddYears
- DayOf
- HourOf
- MillisecondOf
- MinuteOf
- MonthOf
- SecondOf
- YearOf
- DaysBetween
- HoursBetween
- MillisecondsBetween
- MinutesBetween
- SecondsBetween