The ConvertTimeString method converts a string expression of a time value to a Date Variant, based on the specified locale. If successful, ConvertTimeString returns a Date Variant that contains the time; otherwise, Null. Additionally, if the string expression contains a date, ConvertTimeString returns Null.
DataFunctions.ConvertTimeString(Time, Locale)
The following example converts the provided time value, and outputs the value to the page:
<% Time = DataFunctions.ConvertTimeString("3:30PM", &H0409) %>
<% =Hour(Time)%>
<% =Minute(Time)%>
<% =Second(Time)%>
The Time
variable that is returned by ConvertTimeString in this example is actually a Date Variant in which the date part has been set to Null. Therefore, you should not use the VBScript Date function to attempt to extract the date from this value.