Date.DayOfYear
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 number that represents the day of the year from a DateTime value.
Date.DayOfYear(dateTime as datetime) as nullable number
| Argument | Description |
|---|---|
| dateTime | The DateTime to check against. |
Date.DayOfYear(DateTime.FromText("2011-03-01")) equals 60
Date.DayOfYear(DateTime.FromText("2012-03-01")) equals 61
Show: