String was not recognized as a valid DateTime.
newCandidate.FirstNameAR = txtFirstNameAR.Text.Trim(); newCandidate.LastNameAR = txtLastNameAR.Text.Trim(); newCandidate.DOB = Convert.ToDateTime(txtDOB.Text);//Error newCandidate.Address = txtAddress.Text; newCandidate.CountryID = Convert.ToInt16(ddlCountry.SelectedValue);
label1.Text = DateTime.Now.ToShortString();