DateTime dt = DateTime.Parse(txtdob.Text);
SqlCommand cmd = new SqlCommand("insert into new_user values('" + ID + "','" + txtname.Text.Trim() + "','" + txtcompany.Text.Trim() + "','" + txtdesig.Text.Trim() + "',' " + txtcontact.Text.Trim() + " ','" + txtemail.Text.Trim() + "', '" + txtadd.Text.Trim() + "','" + dt + "')", con);
DateTime.Parse
mm/dd/yyyy
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)