Hi all,
I am new to telerik controls, I am having two RadDatePickers(FromRadDatePicker and ToRadDatePicker) and a TextBox(TotalTextBox).I want the Number of days from the Two raddatepickers to the Textbox. I am getting it by using this below code
I also want subtracting the saturdays and sundays and custom holiday list if any.
For Example:-
FromRadDatePicker 31-Aug-2012
ToRadDatePiker 05-Sep-2012
The TotalTextBox Should be 2( 1 and 2-Sep is saturday, sunday and 4-sep is a custom created festival Holiday)
How to create Custom Created Holiday List, and Subtracting the Saturday and Sunday?
Any one Please help me out.
I am new to telerik controls, I am having two RadDatePickers(FromRadDatePicker and ToRadDatePicker) and a TextBox(TotalTextBox).I want the Number of days from the Two raddatepickers to the Textbox. I am getting it by using this below code
TimeSpan ts = ToRadDatePicker.SelectedDate.Value.Subtract(FromRadDatePicker.SelectedDate.Value);
TotalTextBox.Text = ts.Days.ToString();
For Example:-
FromRadDatePicker 31-Aug-2012
ToRadDatePiker 05-Sep-2012
The TotalTextBox Should be 2( 1 and 2-Sep is saturday, sunday and 4-sep is a custom created festival Holiday)
How to create Custom Created Holiday List, and Subtracting the Saturday and Sunday?
Any one Please help me out.