hi i am using asp.net with c# i get this problem when i try to enter date grater than 12 "String was not recognized as a valid DateTime."
i am using sql server 2005. In the table field is in datetime format.In the procedure its is also taking as datetime.and the codes are
DateTime dob = Convert.ToDateTime(txtdob.Text.ToString().Trim());
rec.Add("dob", dob); rec is a hash table.
and the regional setting short date time :MM/dd/yyyy
please help