This is a migrated thread and some comments may be shown as answers.
Date Error
2 Answers 38 Views
This is a migrated thread and some comments may be shown as answers.
bharat kumar
Top achievements
Rank 1
bharat kumar asked on 21 Sep 2010, 07:40 PM

Hi ,

i am using RadDatePicker control and i am getting below error...

Value of '1900-01-01 00:00:00' is not valid for 'SelectedDate'. 'SelectedDate' should be between 'MinDate' and 'MaxDate'.
Parameter name: SelectedDate

while the date is in table is 1900-01-01.

<telerik:RadDatePicker runat="server" DbSelectedDate='<%# Bind("StartDate") %>' 
                                    ID="txtStartDate" style="z-index: 109; left: 90px; position: absolute; 
                                    top: 180px" Width="220px" Skin="Office2007"> 
                                    <DateInput ID="DateInput1" runat="server" DateFormat="yyyy-MM-dd"
                                        ReadOnly="true" Font-Names="Tahoma" Font-Size="12px"></DateInput> 
                        </telerik:RadDatePicker>

waiting for your reply.

Please help.





2 Answers, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 1
answered on 22 Sep 2010, 07:19 AM
Hello,

By default the MinDate for RadDAtePicker is "1/1/1980 12:00:00 AM". So, you need to set lower date value than the actual value populates in datepicker.

Set the MinDate for the RadDatePicker as shown below.
            <telerik:RadDatePicker ID="RadDatePicker2" runat="server" MinDate="01/01/1800">
            </telerik:RadDatePicker>

-Shinu.
0
bharat kumar
Top achievements
Rank 1
answered on 22 Sep 2010, 08:13 AM
Dear Shinu,

thanks for your reply. the problem resolved.
Asked by
bharat kumar
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 1
bharat kumar
Top achievements
Rank 1
Share this question
or