Posted on: 6/15/2013 5:22:42 AM | Views : 342

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 ...