AnsweredAssumed Answered

arcpy.SearchCursor  whereClause with date field

Question asked by jsn on Mar 1, 2016
Latest reply on Mar 3, 2016 by blake.terhune

Hello everyone,


how can I add a date field in a whereClause when using an arcpy.SearchCursor?


This is the portion of the code I am using:

for  row in cur:

   whereClause = "AGMID = " + row.getValue("AGMID") + " AND DIGIDATE = " + row.getValue("DIGIDATE")

   src = arcpy.SearchCursor(AGREEMENT, whereClause)



I can compare the field "AGMID = " + row.getValue("AGMID")   but the field DIGIDATE fails.