What is the fastest/easiest method in VB to accurately determine the number of years between two dates?
I noticed that there seems to be an error in the DateDiff function because if the first date is 12/31/2001 and the second date is 1/1/2002, the datediff return 1 year, even though actual time passed is only 1 day!
Doing a search in this forum on datediff brings up too many results - if someone could please supply me an answer here or point me to a good link in this forum.
I noticed that there seems to be an error in the DateDiff function because if the first date is 12/31/2001 and the second date is 1/1/2002, the datediff return 1 year, even though actual time passed is only 1 day!
Doing a search in this forum on datediff brings up too many results - if someone could please supply me an answer here or point me to a good link in this forum.