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

Calendar How to via code select only 1 date?

1 Answer 48 Views
Calendar, DateTimePicker, TimePicker and Clock
This is a migrated thread and some comments may be shown as answers.
Johnny
Top achievements
Rank 2
Johnny asked on 21 Sep 2011, 12:38 PM
Hi! Im using Q1 2011 with VB.Net 2010
I had some issue here where will like to get the solution.
Im using Telerik Calendar where i set the multipleselect = False
mean always only 1 date is selected.

As default when run the application. SelectedDate = Today (21/09/2011)
then i select other day(23/09/2011). From calendar i always see 23/09/11 is selected.

Now i want a via code. which i will clear the selected date 23/09/2011 and via code selected date = 29/09/2011

How to do it?

Other issue:
By default my calendar selecteddate = Today(21/09/2011) and i get the value by via code and set to a label.
Now i select again the same date the value from via code, it become 01/01/1900. The correct value suppose to be 21/09/2011

The code i use to get the selected date :

msgbox(RadCalendar1.SelectedDate.Date)

Hope to get the answer as soon as posible cause this is urgent....
Thank!

Regards
Johnny


1 Answer, 1 is accepted

Sort by
0
Accepted
Johnny
Top achievements
Rank 2
answered on 21 Sep 2011, 04:46 PM
Already found the answer for my question...

radCalendar1.FocusedDate = #9/9/2011#
Tags
Calendar, DateTimePicker, TimePicker and Clock
Asked by
Johnny
Top achievements
Rank 2
Answers by
Johnny
Top achievements
Rank 2
Share this question
or