title: C# chart Datetime to Date
body: <p>I have a Chart that is bound to a "BindingSource". 
  I use the Date column from the binding source as the X axis like so: </p>
  
  <pre><code>chart1.Series["chart"].XValueMember = "Date");
  </code></pre>
  
  <p>My problem on the other hand is that it also takes the hours/minutes/seconds in to account. (So instead of grouping the entire day to one bar it makes several bars for one day)</p>
  
  <p>Is there a way to make sure that the hours/minute/seconds are ignored in the chart and just grouped together for each day? Without having to change the data source (Seeing the seconds and stuff are important for the datagridview that uses the same data source)  (And while at it, is it also possible to do that for months/years?) </p>
  
  <p>Full code for the chart:</p>
  
  <pre><code>BindingSource Datasource= new BindingSource();
  Datasource.DataSource = Selected_DataTables;
          chart1.Series.Clear();
          chart1.Series.Add("chart");
          chart1.Series["chart"].XValueMember = "Date";
          chart1.Series["chart"].YValueMembers = "Sales";
          chart1.DataSource = Datasource;
          chart1.DataBind();
  </code></pre>
  
  <p>("Selected_DataTables" being a collection of optional database query results)</p>