muro
Active member
- Joined
- Apr 30, 2018
- Messages
- 26
- Programming Experience
- 3-5
Dear friends,
i have a column of type string which is holding values like 22.04.2018 17:30.
I want to use bindingsource.filter and keep only the records of Today.
i tested: dataTable1BindingSource.Filter = $"Datum like '{DateTime.Now.ToShortDateString()}'"; it works when i put some values in to the column without time but
unfourtently i have to keep the time in my columns too otherwise i would save onyl date. So how can i somehow trim the column values during the filtering so it has only 30.04.2018 instead 30.04.2018 17:30
Thanks.
i have a column of type string which is holding values like 22.04.2018 17:30.
I want to use bindingsource.filter and keep only the records of Today.
i tested: dataTable1BindingSource.Filter = $"Datum like '{DateTime.Now.ToShortDateString()}'"; it works when i put some values in to the column without time but
unfourtently i have to keep the time in my columns too otherwise i would save onyl date. So how can i somehow trim the column values during the filtering so it has only 30.04.2018 instead 30.04.2018 17:30
Thanks.
Last edited: