Returns the time component of the provided datetime value, dateTime.
Syntax
DateTime.Time(dateTime as any) as nullable time
About
Returns the time component of the provided datetime value, dateTime.
Explanation
Determine the time value of the input date and time #datetime(2010, 12, 31, 11, 56, 02) using the Power Query function MDateTime.Time(#datetime(2010, 12, 31, 11, 56, 02)). The output will be #time(11, 56, 2).