DateTime oldDate = new DateTime(2002,7,15);
DateTime newDate = DateTime.Now;
// Difference in days, hours, and minutes.
TimeSpan ts = newDate - oldDate;
// Difference in days.
int differenceInDays = ts.Days;
Console.WriteLine("Difference in days: {0} ", differenceInDays);
Download Compiled Code : http://ayette.net/ComputeHoursWork.rar
Download Sample Code: http://ayette.net/ComputeHoursWork.rar
No comments:
Post a Comment