OleDbDataAdapter adp = new OleDbDataAdapter("ins_emp",con); DataSet ds = new DataSet(); adp.SelectCommand.CommandType = CommandType.StoredProcedure; adp.SelectCommand.Parameters.AddWithValue("@psdate", "(to_date('"+Label1.Text+ "','mm/dd/yyyy'))"); adp.Fill(ds)
adp.SelectCommand.Parameters.AddWithValue("@psdate", DateTime.Parse(Label1.Text);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)