Hi,

I am a greenhorn when it comes to using Javascript technologies. I adopted two recently from different third parties. The issues with the first one is that
:after placing the control(RJS PopCalendar) one the UI and accessing it in code behind using the code below:
Code:
obj.DateAdmitted = Datetime.Parse(this.txtAdmissionDate.Text);

Or

obj.DateAdmitted = Convert.ToDatetime(this.txtAdmissionDate.Text);
I get this runtime error:

"Date time overflow. Date time should be within ..../1999 and ...9999

If I attempt the same with AjaxControlToolkit Calendar extender in the UI as follows:

Code:
<AjaxToolkit:CalendarExtender ID="txtAdmissionDate_CalendarExtender" runat="server" Enabled="True"
                        TargetControlID="txtAdmissionDate">
                    </AjaxToolkit:CalendarExtender>
I get another error: String not recognized as valid DAtetime object

Please how do I get around this issues. thank You.