Date.AddDays

 

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 Date/DateTime/DateTimeZone value with the day portion incremented by the number of days provided. It also handles incrementing the month and year potions of the value as appropriate.

Date.AddDays(dateTime, days as number)  

ArgumentDescription
dateTimeThe DateTime to add days to.
daysThe number of days to add.
Date.AddDays(DateTime.FromText("2011-02-19"), 5) equals 2011-02-24  

Date.AddDays(DateTime.FromText("2011-02-19"), -2) equals 2011-02-17  

Date.AddDays(DateTime.FromText("2011-12-31"), 1) equals 2012-01-01  

Show: