So, I have this binding source:
List<archive> list = _context.archive.Include(t => t.partner1).Include(t => t.partner).Include(t => t.document_type).ToList();
list = list.OrderBy(d => d.issuing_date).ToList();
BindingList<archive> bindingList = new BindingList<archive>(list);
this._view.ArchivekDatasource.DataSource = bindingList;
this._view.DocumentTypeDatasource.DataSource = _context.document_type.Local.ToBindingList();
this._view.PartnerDatasource.DataSource = _context.partner.Local.ToBindingList();
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?
I know there is the truncate_time function, but I don't know how to use it to create a binding source as I want.