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
How are you processing your data? Can you post a Python snippet or something? When I need a portion of a date, I parse it using the pandas package and select the portion of the date I need & store that as a new variable.
When I do that, I use a method like this article describes
Hello Kara,
Here is a code snippet that leads to the arcPy.SelectLayerAttribute_Management