This is a migrated thread and some comments may be shown as answers.

Days of the week

3 Answers 66 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Vitaly
Top achievements
Rank 1
Iron
Iron
Vitaly asked on 03 Mar 2014, 04:19 PM
Good morning,
I have used in my application RadDatePicker to get date.Now I need to get just days of week Monday thru Friday(single day of the week or multiple days of the week).
How can I do that?

Thanks so much for your help.

3 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 04 Mar 2014, 03:05 AM
Hi Vitaly,

Please have a look into the following c# code snippet to get the Day of week from the SelectedDate in RadDatePicker.

C#:
protected void RadDatePicker1_SelectedDateChanged(object sender, Telerik.Web.UI.Calendar.SelectedDateChangedEventArgs e)
{
    DateTime value = RadDatePicker1.DateInput.SelectedDate.Value;
    string weekday= value.DayOfWeek.ToString();
}

Thanks,
Shinu.
0
Vitaly
Top achievements
Rank 1
Iron
Iron
answered on 04 Mar 2014, 02:32 PM
Good morning,
thanks for your respond.what about if I want to choose multiple days of the week?

Thanks for your help.
0
Kostadin
Telerik team
answered on 04 Mar 2014, 04:24 PM
Hello Vitaly,

I am afraid that RadDatePicker does not supports multi-date selection. You could check out the following forum tread where is discussed the same as your scenario.

Regards,
Kostadin
Telerik

DevCraft Q1'14 is here! Join the free online conference to see how this release solves your top-5 .NET challenges. Reserve your seat now!

Tags
General Discussions
Asked by
Vitaly
Top achievements
Rank 1
Iron
Iron
Answers by
Shinu
Top achievements
Rank 2
Vitaly
Top achievements
Rank 1
Iron
Iron
Kostadin
Telerik team
Share this question
or