I don't know where to start with the Datetimes.
I got a starting time Datetime and ending time Datetime.
|
I need to get the number of days left.
I need to subtract from End but how?
Thank you
I need to subtract from End but how?
Thank you
Suthish NairPosted Oct 24, 2010, 2:34 PM
DateTime startdate = Convert.ToDateTime(txtsdate.Text);DateTime enddate = Convert.ToDateTime(txtedate .Text);
TimeSpan ts = enddate - startdate;
int days = ts.Days;
or,