Can anyone help me with this? I'm trying to calculate the number of days of a start and a finish date and put the result of days in a textbox. The problem I'm having is the conversion, I'm getting 243.00:00:00
mailto:[email protected]. Also put result on forum
Here's the code:
System.DateTime dtmStartDate =
new System.DateTime(2007,1,1);
System.DateTime dtmFinishDate =
new System.DateTime(2007,9,1);
System.TimeSpan intDays=dtmFinishDate.Subtract(dtmStartDate);
txtDays.Text=Convert.ToString( intDays );