title: How to show only date rather than datetime in data grid view
body: <p>So, I have this binding source:</p>
  
  <pre><code> List&lt;archive&gt; list = _context.archive.Include(t =&gt; t.partner1).Include(t =&gt; t.partner).Include(t =&gt; t.document_type).ToList();
  
   list = list.OrderBy(d =&gt; d.issuing_date).ToList();
   BindingList&lt;archive&gt; bindingList = new BindingList&lt;archive&gt;(list);
  
  this._view.ArchivekDatasource.DataSource = bindingList;
  this._view.DocumentTypeDatasource.DataSource = _context.document_type.Local.ToBindingList();
  this._view.PartnerDatasource.DataSource = _context.partner.Local.ToBindingList();
  </code></pre>
  
  <p>So, archive has two fields that are represented as datetime in the database. But I just want to have them as date when shown in data grid view... How can I do this?</p>
  
  <p>I know there is the <a href="https://docs.microsoft.com/en-us/dotnet/api/system.data.objects.entityfunctions.truncatetime?redirectedfrom=MSDN&amp;view=netframework-4.7.2#System_Data_Objects_EntityFunctions_TruncateTime_System_Nullable_System_DateTime__" rel="nofollow noreferrer">truncate_time</a> function, but I don't know how to use it to create a binding source as I want.</p>