Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to covert string to time
Message
From
12/12/2001 17:40:05
 
 
To
12/12/2001 17:33:26
General information
Forum:
Visual Basic
Category:
Other
Miscellaneous
Thread ID:
00593615
Message ID:
00593621
Views:
12
>I have time data stored as string type, how can I convert them back to time.
>Also, how to compare them with the current time ? Thanks

CDate() works for that. You can use IsDate() to check if the string can be converted to a Date format. Sample:
Debug.Print CDate("4:30:55 PM")
HTH
Previous
Reply
Map
View

Click here to load this message in the networking platform