TimeValue()

Top  Previous  Next

TimeValue() - Create a time from a formatted time string

Description

The TimeValue() creates a date variant containing the time from the supplied formatted time string.

TimeValue(time)

Example

MyTime = TimeValue("19:12:34") 'returns 7:12:34 PM

 

MyTime = TimeValue("7:12:34 PM") 'returns 7:12:34 PM