Answer the question
In order to leave comments, you need to log in
Where LINQ doesn't work when filtering DateTIme, what's wrong?
if (dto.birthDate != "")
{
DateTime birthDate = Convert.ToDateTime(dto.birthDate);
DateTime birthDate1 = Convert.ToDateTime(dto.birthDate).AddDays(1).AddTicks(-1);
items = items.Where(e => e.BirthDate >= birthDate && e.BirthDate <= birthDate1);
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question