title: Removing Time Portion from DateTime
body: <p>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 :(</p>
  
  <pre><code>  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();
  </code></pre>