Please kind coders, this line of code is adding both date and time to the comboBoxResult which i do not want, i only addedCode:sqlCommand = new SqlCommand("SELECT date FROM Transactions", sqlConnection); sqlDataReader = sqlCommand.ExecuteReader(); while (sqlDataReader.Read()) { comboBoxResult.Items.Add(sqlDataReader["date"].ToString()); }
date to the database but when retriving it it brings both date and time. I want only the date to be added. Thanks.




Reply With Quote