Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to compare to string dates
Message
De
20/08/2002 06:51:17
 
 
À
Tous
Information générale
Forum:
Visual Basic
Catégorie:
Autre
Titre:
How to compare to string dates
Divers
Thread ID:
00691374
Message ID:
00691374
Vues:
64
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform