System.DateTime includes a Subtract method, which will do exactly this. In
C#, you can also use the - operator.
--
Chris Jackson
Software Engineer
Microsoft MVP - Windows Shell/UI
Windows XP Associate Expert
--
More people read the newsgroups than read my email.
Reply to the newsgroup for a faster response.
(Control-G using Outlook Express)
--
"Brian Henry" <br******@adelphia.net> wrote in message
news:uE**************@TK2MSFTNGP10.phx.gbl...
How would i take two dates startdate and enddate and subtract startdate
from enddate to figure the number of days between the two? thanks