Avatar of dingir
dingir
Flag for Sweden

asked on 

Calculate Difference between dates in linq

I have a query that takes f.e. 5000 rows (can be two or 20.000). I want to calculate the difference between the earliest and latest date in that result. The output should be the difference in ie. minutes.

I prefferably take the result as es.Where(q => field.Contains(q.status))) who contains a specific date field that should be used in the calculation,
.NET ProgrammingC#

Avatar of undefined
Last Comment
dingir

8/22/2022 - Mon