G
Guest
Private Function GetValidTime(ByVal atimestring As String) As String
I am writing a function that accepts a string that may contains a time in
format "HH:MM" or it may contain junk data.
How can I check whether the string passed in this function is a valid time.
The function should return a valid time string otherwise it returns "00:00"
in case if invalid timestring was passed.
How can I write that function?
ABB
I am writing a function that accepts a string that may contains a time in
format "HH:MM" or it may contain junk data.
How can I check whether the string passed in this function is a valid time.
The function should return a valid time string otherwise it returns "00:00"
in case if invalid timestring was passed.
How can I write that function?
ABB