Server Error in '/' Application.
The string was not recognized as a valid DateTime. There is an unknown word starting at index 0.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.FormatException: The string was not recognized as a valid DateTime. There is an unknown word starting at index 0.

Source Error:


Line 24: {
Line 25: string date = drplist_day.SelectedValue + "-" + drplist_month.SelectedValue + "-" + drplist_year.SelectedValue;
Line 26: DateTime dd = Convert.ToDateTime(date);
Line 27: cmdstr = "insert into webuser(title,surname,name,fname,dob,address,phoneno,mbno,nativeplace,bloodgrup,occupation,edu,city, state,country,zip_code,email,password,mot) values('" + DropDownList1.SelectedValue + "','" + txt_sname.Text + "','" + txt_name.Text + "','" + txt_fname.Text + "','" + dd + "','" + txt_add.Text + "','" + txt_pno.Text + "','" + txt_mno.Text + "','"+txt_nplace.Text+"','" + txt_bldgrp.Text + "','" + txt_occupation.Text + "','" + txt_edu.Text + "','" + txt_city.Text + "','" + txt_state.Text + "','" + txt_country.Text + "','" + txt_code.Text + "','" + txt_mail.Text + "','" + txt_pass.Text + "','" + drp_member.SelectedValue + "')";
Line 28: cmd = new SqlCommand(cmdstr, con);


Source File: c:\inetpub\vhosts\shreethummarparivar.com\httpdocs\Websiteuser.aspx.cs Line: 26

Stack Trace:


[FormatException: The string was not recognized as a valid DateTime. There is an unknown word starting at index 0.]
System.DateTimeParse.Parse(String s, DateTimeFormatInfo dtfi, DateTimeStyles styles) +10841066
System.Convert.ToDateTime(String value) +83
Websiteuser.btn_submit_Click(Object sender, EventArgs e) in c:\inetpub\vhosts\shreethummarparivar.com\httpdocs\Websiteuser.aspx.cs:26
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +9752490
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +196
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +35
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1724


when i am open a Website user Form or any form get that error.
please give me solution.