|
I found out it was more simple than I thought.
subtracting one date from another returns not a datetime as I thought I saw, but a TimeSpan object.
So you can do this:
TimeSpan difference = endTime.Subtract(startTime);
and then get the days with: difference.Days
|
|
Expert:
|
dustPuppy
|
|
Date:
|
Sep 28, 2007
|
|
Time:
|
12:59
|
|
|
|
Votes: Good (0) | Bad (0) Login to rate this answer
|
|
|
|
|
|
|
This question has been answered, and points have been rewarded to the following experts:
You're welcome however to comment or give additional information or if you wish, you have the ability to write an Answer Summary for this question by clicking on the "Answer Summaries" Tab.
|
|