i have a datetime value and i compare to now. I try to convert the two dates to int because are different type.
this is a my code:
Int64 NowDate = Convert.ToInt64(DateTime.Now.ToString("yyyyMMddhhmmss"));
return mylist.Where(f => Convert.ToInt64(f.DateStart.ToString("yyyyMMddhhmmss")) > NowDate).ToList();
it works but if your of day is 21.00.00 i have a problem, convert.toint64 remove the 00.00 and my number is < nowdate.