title: How to show just the date and not date and time in a WPF datagrid?
body: <p>I have a WPF datagrid with a binding to a class object that looks like the following:</p>
  
  <pre><code>&lt;DataGridTextColumn Header="Order Date" Binding="{Binding OrderDate }" /&gt;
  </code></pre>
  
  <p>The property in the class is quite simple, as follows:</p>
  
  <pre><code>public DateTime OrderDate { get; set; }
  </code></pre>
  
  <p>When I'm populating this property I'm just sending <code>DateTime.Date</code> (date only, not time):</p>
  
  <pre><code>.Select(
      r =&gt;
      new Customer
          {
              Persona = r.Persona,
              CustomerName = r.CustomerName,
              Email = r.Email,
              Organization = r.Organization,
              PhoneNumber = r.PhoneNumber,
              Street = r.Street,
              Suburb = r.Suburb,
              Postcode = r.Postcode,
              OrderDate = r.OrderDate.Date
          }))
  </code></pre>
  
  <p>Unfortunately this doesn't reflect in my WPF datagrid as that's showing the date, but then it's also showing the time (everywhere) as <code>12:00:00AM</code>. How should I approach just having my WPF datagrid show the date only?</p>