I know we have all have to use dates at some time or another. I came across this posting and thought I would list it here for you. Hope it helps.
DateTime today = DateTime.Today; // just the date
DateTime tomorrow = today.AddDays(1);
DateTime yesterday = today.AddDays(-1);
TimeSpan time = tomorrow – today;
int days = time.Days;
int hours = time.Hours;
int minutes = time.Minutes;
int seconds = time.Seconds;
int milliseconds = time.Milliseconds;
time += new TimeSpan(days, hours, minutes, seconds,
milliseconds);
As always, if there are any questions or suggestions, they are welcome. Thank you.