Hi,
I need to concatenate Data in Python 3, the script below is in VB.
The PLANTIO field is with Date type and SAFRA text, but validation needs to be like the expression below. I've already tried transforming in ArcPRO Modelbuilder but without success.
Ano1 and Ano2 = Text
How can I do this?
arcpy.SelectLayerByAttribute_management("Censo_view1", "NEW_SELECTION", "!SAFRA! = '" + Safra2 + "' AND !PLANTIO! >= #04-01-" + ano + " 00:00:00# AND !PLANTIO! <= #03-31-" + ano1 + " 00:00:00#")