This function creates a Variant of subtype Date containing the time.
TimeValue(time)
Returns a Variant of subtype Date.
You can enter valid times using a 12-hour or 24-hour clock. For example, 2:24 P.M. and 14:24 are both valid time parameters.
If the time parameter contains date information, TimeValue does not return the date information. However, if time includes invalid date information, an error occurs.