Data Type: String
Any valid string representation of a time.
Converts a string representation of a time to a Variant Date type.
time is invalid, a runtime
error is generated.
Both 12- and 24-hour clock formats are valid.
Any date information contained within
time is ignored by the
If TimeValue returns invalid time information, an error occurs.
A time literal can also be assigned to a Variant or Date
variable by surrounding the date with hash characters (
#), as the following snippet
Dim dMyTime dMyTime = #12:30:00 AM#
The CDate function can also cast a time expression contained within a string as a Date variable, with the additional advantage of being internationally aware.