Time.EndOfHour

 

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 from the end of the hour.

Time.EndOfHour(dateTime as datetime) as nullable datetime  

ArgumentDescription
dateTimeThe DateTime to check against.
  • The time portion is reset to its terminating values for the hour.

  • The timezone information is persisted.

dateTime = DateTimeZone.FromText("2011-02-21T12:30:00-08:00");   
Time.EndOfHour(dateTime) equals 2011-02-21T12:59:59-08:00  

Show: