i have two calender and two dropdownlist. i want to check number of days.needs of dropdownlist is checking halfday or fullday.
halfday is 0.5 and full day is 1
i want to use the conditions....like if ....
where?
coding:
DateTime FromYear = Convert.ToDateTime(calfrom.SelectedDate);
DateTime ToYear = Convert.ToDateTime(calto.SelectedDate);
TimeSpan objTimeSpan = ToYear - FromYear;
double Days = Convert.ToDouble(objTimeSpan.TotalDays );
Label1.Text = Convert.ToString(Days);
Displaying number of days in label
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.

VulpesRank #55 · 29.2K reputationPosted Feb 3, 2015, 6:57 AM EST
Try:
ancy chacko70 reputationPosted Feb 3, 2015, 6:54 PM EST
Piyush trivedi4 reputationPosted Feb 4, 2015, 9:41 AM EST