Date.AddYears
This topic applies to the Power Query Formula Language which can be used with Power Query and Power BI Desktop to build queries that mashup data. See the list of function categories.
Returns a DateTime value with the year portion incremented by n years.
Date.AddYears(dateTime as datetime, years as number) as datetime
| Argument | Description |
|---|---|
| dateTime | The DateTime to add years to. |
| years | The number of years to add. |
Date.AddYears(DateTime.FromText("2011-02-19"), 10) equals 2021-02-19
Show: