how do i get total no of days between two days which might include leap year

right now i'm getting the no of days by using DateDiff function in vb.net.
but i reckon it is not precise. cos it is not validating leapyear.

pls advise me the best solution for the above

its very urgent