Compare a date which is stored as char(8) using LinQ
Hi,In db, a date column is designed as Char(8).
I want to compare if this date falls between 2 given dates.
Eg:
Where(tmp => tmp.DateField1.CompareTo(st_dt) >= 0 && tmp.create_dt.CompareTo(ed_dt1) <= 0)
I tried this. But not getting expected results.
Can anyone please correct me?
Thanks.