Posted on: 1/10/2014 6:40:43 PM | Views : 802

Hi,
i have  textboxes sunday to monday with times
sun   01:00:00
mon  02:30:00
tues  03:00:00
wed  02:00:00
thurs  02:00:00
fri     02:00:00
sat    02:00:00
sun   02:00:00
total   16.5//now got this output   i want  to show in this format 16hr:30min //output
 

DateTime dFrom; DateTime dTo; int val1, val2, val3; string sDateFrom = txt_SatStartTime.Text; // In your case get the time from the TextBox string sDateTo = txt_SatEndTime.Text; string satBreakfast = txt_SatBreakfast.Text; string satLunch = txt_SatLunch.Text; string satDinner = txt_SatDinner.Text; int.TryParse(satBreakfast, out val1); int.TryParse(satLunch, out val2); int.TryParse(satDinner, out v ...

Go to the complete details ...