I have one query in vb.net.i am trying to insert date to SQL Database but when i click inset button then show me a error message above.Please if you can help me so i need yours advice.Thanks my code is below. 'In SQL database @DtoDOB Data type is Date.
cmd.Parameters.Add("@DtpDOB", SqlDbType.Date.ToString("dd-mm-yyyy")).Value = DtpDOB.Value