How can I remove the Time portion from DateTime before passing it to a GridView. I'm using VS2008 else I would be using Date :(
DataTable datatablePlanning = new DataTable("Planning");
DateTime begindate = DatePicker1.SelectedDate;
DataRow detailregel = datatablePlanning.NewRow();
detailregel["Date"] = begindate;
datatablePlanning.Rows.Add(detailregel);
GridView2.DataSource = datatablePlanning;
GridView2.DataBind();
DateTimefor that column.