Hi there. I'm learning from this thread. I'm understanding that the where clause is an SQL line, correct? If that's the case and you need to provide a quoted expression as a parameter, and if a variable representing that expression is not quated, then you could use the...
repr() function with the variable as an argument to return extra quotes into the parameter as follows..
Thanks for posting your tests. Let me know if you have any insight on what I'm figuring...
fc = # Feature Class with date field field = "DateField" rows = arcpy.SearchCursor(fc, field+" = date '2011-02-22'") ...
rows = arcpy.SearchCursor(fc, field+" = date '2011-02-22 00:00:00'")