LINQ with Datetime

  • Thread starter Thread starter Ant
  • Start date Start date
A

Ant

Hi,
How can I use a date string to test a date in a LINQ query.
Below is a query in Northwind

Many thanks for any help

Ant

NorthwindDataContext db = new NorthwindDataContext();

var resultSet = from o in db.Orders
where o.OrderDate >= Convert.ToDateTime("20080601")
select o;
 
Not sure what are you asking for....
Can you provide some more details?
What's wrong with your code (except for the fact that you should use new
DateTime(2008, 6, 1) instead)
 
Back
Top