• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 123
  • Last Modified:

Compare two dates

VB5
---
How can I compare two dates from the FileDateTime() function? I want to see which file is older.
0
liljegren
Asked:
liljegren
1 Solution
 
liljegrenAuthor Commented:
Naturally, I don't want the program to crasch on a computer with another regional date setting. :-)
0
 
jjbyersCommented:
Use the DateDiff function. It will return the interval between the two dates.
0
 
deightonCommented:
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

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now