Date.StartOfYear
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 representing the start of the year.
Date.StartOfYear(dateTime as nullable datetime) as nullable datetime
| Argument | Description |
|---|---|
| dateTime | The DateTime to check against. |
The date and time portions are reset to their initial values for the year.
The timezone information is persisted.
dateTime=DateTimeZone.FromText("2011-02-21T12:30:00-08:00")
Date.StartOfYear(dateTime) equals 2011-01-01T00:00:00-08:00
Show: