lulu50
asked on
my date between is not getting me the correct records
Hi,
My between date is not working
I'm only getting one record instead of three
I don't know what I'm doing wrong.
I tried without parsing it and that didn't work.
My between date is not working
I'm only getting one record instead of three
I don't know what I'm doing wrong.
I tried without parsing it and that didn't work.
public DateTime FromCreatedDate { get; set; }
public DateTime ToCreatedDate { get; set; }
list = list.Where(x => x.CreatedDate >= DateTime.Parse(model.FromCreatedDate.ToString()) && x.CreatedDate <= DateTime.Parse(model.ToCreatedDate.ToString()));
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER