Compare two dates

VB5
---
How can I compare two dates from the FileDateTime() function? I want to see which file is older.
liljegrenAsked:
Who is Participating?
 
jjbyersConnect With a Mentor Commented:
Use the DateDiff function. It will return the interval between the two dates.
0
 
liljegrenAuthor Commented:
Naturally, I don't want the program to crasch on a computer with another regional date setting. :-)
0
 
deightonprogCommented:
use CDbl to change the results of FileDateTime and store in double variables.  Compare the values - the higher the value the later the date.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.