DateTimeZone functions

DateTimeZone functions functions for Power Query M language.

Functions

FunctionDescription
#datetimezoneGenerates a datetimezone value using numeric inputs for the year, month, day, hour, minute, (fractional) second, (fractional) offset-hours, and offset-minutes. If any of the following conditions are n...
DateTimeZone.FixedLocalNowThis function retrieves the current date and time from the system and stores it as a datetime value. The value includes information about the local timezone. Unlike DateTimeZone.LocalNow, the retrieve...
DateTimeZone.FixedUtcNowThis function retrieves the current date and time in Coordinated Universal Time (UTC), which is equivalent to Greenwich Mean Time (GMT). The value returned by this function remains constant and will n...
DateTimeZone.FromThis function returns a DateTimeZone value based on the input provided. It is possible to specify an optional culture parameter (e.g. "en-US"). If the input value is null, the function will also retur...
DateTimeZone.FromFileTimeGenerates a datetimezone value by converting the fileTime value to the local time zone. FileTime is a Windows file time value that indicates the quantity of 100-nanosecond intervals passed since 12:00...
DateTimeZone.FromTextThis function creates a datetimezone value based on a provided text representation. An optional parameter, options, can be included to specify additional properties. The options parameter can include ...
DateTimeZone.LocalNowReturns a datetimezone value that is set to the current date and time on the system. The value returned includes timezone information that represents the local timezone.
DateTimeZone.RemoveZoneThis function obtains a #datetime value from dateTimeZone, excluding the timezone information.
DateTimeZone.SwitchZoneModifies the timezone information of the `dateTimeZone` value to the new timezone specified by `timezoneHours` and, if applicable, `timezoneMinutes`. If `dateTimeZone` lacks a timezone component, an e...
DateTimeZone.ToLocalAdjusts the timezone data of the dateTimeZone value to match the local timezone. If dateTimeZone does not already include timezone information, the local timezone is incorporated.
DateTimeZone.ToRecordThis function retrieves a dataset that includes the components of the specified datetimezone value. dateTimeZone: The datetimezone value from which the dataset of its components will be generated.
DateTimeZone.ToTextThis function generates a textual representation of a given dateTimeZone. Additionally, an optional record parameter called options can be included to specify extra properties. The culture field is on...
DateTimeZone.ToUtcThe function modifies the timezone information of the datetime value `dateTimeZone` to the UTC (Universal Time Coordinated) timezone. If `dateTimeZone` does not already have a timezone component, the ...
DateTimeZone.UtcNowThis function outputs the present date and time in the Coordinated Universal Time (UTC) timezone, also known as Greenwich Mean Time (GMT).
DateTimeZone.ZoneHoursAdjusts the time zone of the specified value.
DateTimeZone.ZoneMinutesAdjusts the time zone of the specified value.