addition date

I am using VB.NET windows forms.
I have problem with addition(+) between startdate and enddate
I want to show value to total how many day
example
startdate =#01/01/2003#
enddate =#02/05/2003#
totaldate = startdate+enddate
what is sum value totaldate?
Can any one help?
Thanks
[311 byte] By [codefund.com] at [2008-2-19]
# 1
Adding Dates together Yields no definable results, even in real life.

What you probably want is a DateTime span, which is the amount of "Time" that lies between the startdate and the enddate.

This is done by substracting 2 dates together.
it should also be expressed as totaldays (or totaltime) etc

totaldays = enddate - startdate

Now, once you have a timespan, you can use is to add or substract from other dates. etc etc.

Hope this helps you.

codefund.com at 2007-9-8 > top of Msdn Tech,Windows Forms,Windows Forms Designer...
# 2
Not accounting for leapyears but it would be March 6th, 4006 ;)
codefund.com at 2007-9-8 > top of Msdn Tech,Windows Forms,Windows Forms Designer...