Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to covert string to time
Message
De
12/12/2001 17:40:05
 
 
À
12/12/2001 17:33:26
Information générale
Forum:
Visual Basic
Catégorie:
Autre
Divers
Thread ID:
00593615
Message ID:
00593621
Vues:
14
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform