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