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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top