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
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.