I need to get data based on date range like:
SELECT * FROM MyTable WHERE
myDate >= 'May 17 2012' AND
myDate <= 'May 17 2012'
I have written this query in LINQ , the issue is that LINQ is converting this query to:
SELECT * FROM MyTable WHERE
myDate >= 'May 17 2012 12:00:00:000AM' AND
myDate <= 'May 17 2012 12:00:00:000AM'
The problem is that LINQ is also considering the time part but I need to search only on date part.
Can anyone help me?
Thanks.