I'm defining a SetQuery variable in Arcpy.SelectLayerByAttribute_management(fc, 'NEW_SELECTION', SetQuery) as
SetQuery = 'chgdate > admin_date'. Both chgdate and admin_date are fields in the featureclass. However, the chgdate is datetime, and admin_date is date fieldtype. For the results from the Arcpy.SelectLayerByAttribute_management, I would like the SetQuery be based on where the chgdate values are of the date field type (not include time).
Is there a way to do this?
-Jeff