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

Calendar - select first day of year

2 Answers 64 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Olo
Top achievements
Rank 1
Olo asked on 31 Dec 2008, 12:46 PM
Hi,
how can I  automatically (using c#) set a date for first day (last) in the year?
Thanks.

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 31 Dec 2008, 01:32 PM
Hi Olo,

I"m not sure if I get your question correctly, you can select the date from the code behind as shown below.

CS:
DateTime dt = new DateTime(2008, 12, 10); //Set the date 
RadCalendar1.SelectedDate = dt; 

Thanks,
Shinu
0
Olo
Top achievements
Rank 1
answered on 31 Dec 2008, 02:19 PM
Thx for reply.
Tags
Calendar
Asked by
Olo
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Olo
Top achievements
Rank 1
Share this question
or