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

DatePicker & TimePicker

1 Answer 82 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Abdul Kadar
Top achievements
Rank 1
Abdul Kadar asked on 15 Oct 2008, 04:39 PM
Hi
In my application,I used Date Picker & time picker seperately.
I use the below code to avoid null values

If

 

  RadDatePicker1.IsEmpty Then
RadDatePicker1.SelectedDate = "01/01/2000"
End If

My problem is how to clear the data in raddatepicker1 when clicking new button
Also when I retrieve the data from the database, if the date in the database is "01/01/2000"
,I need the raddatepicker1 control data is empty.

 

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 16 Oct 2008, 09:31 AM
Hello Abdul,

To clear the selected date on the DatePicker you can use the following line of code
RadDatePicker1.Clear(); 

To check for the date in the Database and then clear the RadDatePicker, you have to check for the DbSelectedDate and then apply the same code mentioned above.

Thanks
Princy.
Tags
General Discussions
Asked by
Abdul Kadar
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or