time calculation within LINQ
Posted
by d daly
on Stack Overflow
See other posts from Stack Overflow
or by d daly
Published on 2010-04-21T10:30:17Z
Indexed on
2010/04/21
10:33 UTC
Read the original article
Hit count: 226
Hi
I want a linq query to return a calculated timespan, i have used the timespan function before, but im not sure how to incorporate it into linq. Basically the linq is returning a datetime field which i want to subtract from the current datetime to get days and hours.
Any help appreciated!
Thanks
© Stack Overflow or respective owner