I have a dropdown list that gets it's values from events on the database and it's working fine, this is the code that I'm using:
DataSet ds = event.ReturnFutureEvents();
meetingDropdown.DataTextField = ds.Tables[0].Columns["date"].ToString();
meetingDropdown.DataValueField = ds.Tables[0].Columns["id"].ToString();
meetingDropdown.DataSource = ds.Tables[0];
meetingDropdown.DataBind();
However, this makes the values on the dropdown formated like 02/04/2020 00:00:00, and I want only the Date, without Time. The .ToString() on these doesn't accept any arguments, and converting the columns to DateTime doesn't work.