Time.FromText

 

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 value from a set of date formats.

Time.FromText(time as nullable text, optional culture as nullable text) as nullable date  

ArgumentDescription
timeThe text value representing the time.
optional cultureA text value corresponding to the culture values supported on your version of Windows, such as "en-US". If the culture is not specified, the current user culture is used. For a list of culture names, see National Language Support (NLS) API Reference.

Time formats

  • hh:mm

  • hh:mm:ss

  • hh:mm:ss.nnnnnnn

Terms

  • h = hours

  • m = minutes

  • s = seconds

  • n = fractional seconds

Time.FromText("12:34:12") equals Time,hh:mm:ss  

Time.FromText("12:34:12.1254425") equals hh:mm:ss.nnnnnnn  

Show: