public void updateweeks(string getdate) { string result = getdate.Substring(0, 10); OracleConnection con; OracleCommand cmd; con = new OracleConnection(
Remove semi-colon at the end of the cmd.CommandText, here:
cmd.CommandText
M/YY');"; ^ | here