Compare two dates

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