J
James.
Ok, try not to laugh. I have two dates in VBA, I wish to find the years
between them using the datediff function.
date1 = #1/1/2000#
date2 = #1/1/2005#
date3 = DateDiff("yyyy", date2, date1)
When I run this date 3 is :
12/25/1899
I was kinda hoping for 5 years. I have changed the order of the date value
and still get an odd result. Can anyone tell me the silly mistake I am
making here please.
Thanks.
James D.
between them using the datediff function.
date1 = #1/1/2000#
date2 = #1/1/2005#
date3 = DateDiff("yyyy", date2, date1)
When I run this date 3 is :
12/25/1899
I was kinda hoping for 5 years. I have changed the order of the date value
and still get an odd result. Can anyone tell me the silly mistake I am
making here please.
Thanks.
James D.