"Ryan" <nf*@nospam.com> wrote in
news:uX*************@TK2MSFTNGP11.phx.gbl:
I would prefer not to use a reference to VB... just want an
elegant way to calculate days between two dates.
For example, 2004/12/31 and 2005/01/01 would show an elapsed
time in days of 1.
Ryan
DateTime start = new DateTime(2004, 12, 31);
DateTime end = new DateTime(2005, 1, 1);
TimeSpan ts = end - start;
int elapsedDays = ts.Days;
--
Hope this helps.
Chris.
-------------
C.R. Timmons Consulting, Inc.
http://www.crtimmonsinc.com/