Filtering by date

I am trying to implement my custom filter on a data set so I wrote code like this:and when it depends on integer value or string value it is not a problem but now I tried to implement filter on date field and I have no luck.


{Filter = $@"i => i.DATUM == {_date} && i.ZDRID == {_zdrust}"}

{Filter = $@"i => i.DATUM == '{_date.Value.ToString("yyyy-MM-dd")}' && i.ZDRID == {_zdrust}"

but nothing achieved. Maybe some advice?

Problem solved. Thank you.