DAX Date & Time - TIMEVALUE function
Description
Converts time in text format to time in datetime format.
Syntax
TIMEVALUE (<time_text>)
Parameters
Sr.No. | Parameter & Description |
---|---|
1 |
time_text A text string that represents a certain time of the day. Any date information included in the time_text parameter is ignored. |
Return Value
A date in datetime format.
Remarks
When the time_text parameter is a text representation of the date and time, DAX TIMEVALUE function uses the locale and date/time settings of the client computer to understand the text value in order to perform the conversion. Most locales use the colon (:) as the time separator, and any input text using colons as time separators will parse correctly.
Review your locale settings to understand your results.
Example
= TIMEVALUE ("14:45:35") returns 12/30/1899 2:45:35 PM. = TIMEVALUE ("2:35:55") returns 12/30/1899 2:35:55 AM.