Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to compare to string dates
Message
 
To
20/08/2002 06:51:17
General information
Forum:
Visual Basic
Category:
Other
Miscellaneous
Thread ID:
00691374
Message ID:
00691399
Views:
17
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
Previous
Reply
Map
View

Click here to load this message in the networking platform