Author: blink18jew | Posted on: 6/20/2008 7:14:03 PM | Views : 419

hey, im playing around with the 'TimeSpan' function, if i work out how many days there are between two datetime values such as :



DateTime Today = DateTime.Now();

DateTime TwoDaysAgo = DateTime.Now.AddDays(-2);

TimeSpan Difference = Today - TwoDaysAgo;



Response.Write(Difference.TotalDays);



this would display a number such as 2.029 etc. How can i customize the integer so it just shows me the full number ie '2'. im probably overlooking a very simple solution here i release! thanks Si! ...

Go to the complete details ...