I'm creating a scheduler and I'm getting the value of the dates from a database. When I display the dates in a combo box it adds " 12:00:00 a.m" to all the values at the end of the dates for example "1/06/2016 12:00:00 a.m." instead of just "1/06/2016" the 12 am is not shown with the values when displayed in the database or in a data grid and i tried to replace slots.replace but that didn't work
DataTable day = new DataTable();
foreach (DataRow db in timeslots.Tables["schedules"].Rows)
{
string slot = db["sdates"].ToString();
if (!comboBox2.Items.Contains(slot))
{
comboBox2.Items.Add(db["sdate"].ToString());
}
}