DateTime doj = new DateTime();
System.Globalization.CultureInfo C1 = new System.Globalization.CultureInfo("en-GB", true);
doj = DateTime.Parse(txtdoj.Text.Trim(), C1, System.Globalization.DateTimeStyles.NoCurrentDateDefault);
in above code doj does not chane 'MM/dd/yyyy' format.
so it produced the error.
The conversion of a varchar data type to a datetime data type resulted in an out-of-range value
...
Go to the complete details ...