Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to compare to string dates
Message
 
À
20/08/2002 06:51:17
Information générale
Forum:
Visual Basic
Catégorie:
Autre
Divers
Thread ID:
00691374
Message ID:
00691399
Vues:
16
The answer is in second (I guess). Have a look at the DateDiff statement instead.


>Hi
>
>I am using the filesystems object to get a hold of the last time a file was modified.
>
>I then want to check this time against the current time, and if 15 minutes has elapsed I want to mail the users.
>
>I need to know how to compare two dates, or times
>
>for exapmle the two dates are strings ..so I convert them to dates
>
>CDate("20/08/02 12:00:00") - CDate("20/08/02 10:00:00")
>
>this gives me a result of 8.2332343434-e
>
>Does anyone know how to return a result which makes sense ?
>
>Hope you can help
>
>Regards
>Steven
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform