Good day, I am doing an application in C# and I connect to a Mysql database. I have a column that is of type datetime and doing the select from the application also sends me the time. Only I am interested in the date.
MySqlCommand comando = new MySqlCommand();
comando.Connection = conexion;
comando.CommandText = "SELECT codgrupo,fecha,ciudad FROM actuacion";
MySqlDataReader DR = comando.ExecuteReader();
while (DR.Read())
{
ListViewItem ITEM = lvact.Items.Add(DR["codGrupo"].ToString());
ITEM.SubItems.Add(DR["fecha"].ToString());
ITEM.SubItems.Add(DR["ciudad"].ToString());
}
DR.Close();
conexion.Close();