Click to See Complete Forum and Search --> : Help!!How to judge if a string is a time string?


xmasry
April 26th, 2005, 11:21 PM
When I manage my file, I need to judge a string(or some chars) read from the file is a time expression or not? Such as:
00:00:00.18,00:00:00.71.
I need to recognize that the 00:00:00.18 expression is a time.
thanks!

RickCrone
April 27th, 2005, 10:56 AM
Maybe parse the string into a COleDatetime... if it fails to parse it's not a date time.