DateTimeZone.ZoneHours

 

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 time zone hour value from a DateTime value.

DateTimeZone.ZoneHours(dateTime as datetimezone) as nullable number  

ArgumentDescription
dateTimeThe DateTimeZone to check against.
DateTimeZone.ZoneHours(DateTime.FromText("12:56:20-08:00")) equals -8  

Show: