difference between two dates efcore code example Example: difference between two dates efcore (EndDate.Date - StartDate.Date).Days //int