Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Here’s some useful code if you need to know how much time has elapsed between two days.
DateTime oldDate = new DateTime(2005, 7, 31);
DateTime newDate = DateTime.Now;
// Difference in days, hours, and minutes.
TimeSpan timeSpan = newDate - oldDate;
// determine how many days are in the time span
int differenceInDays = timeSpan.Days;
labelDateDifference.Text = differenceInDays.ToString();