datetime query

Mar 2, 2010 at 12:00 AM

I'm trying to do something like this

from p in clients

where p.RowCreateDate >= "02/25/2010"

select p

but I get an error saying

Operator '>=' cannot be applied to operands of type 'System.DateTime' and 'string'

what syntax should I be using.

thanks.

Coordinator
Mar 3, 2010 at 1:09 AM

Try something like this:

from p in clients
where p.RowCreateDate >= DateTime.Parse("02/25/2010")
select p