I have a small block of code where I concatenate two date fields and use field calculator to calculate a the values of a third field. My date fields are ORIGDTDATE
and ORIGDTTIME
.
How can I change the block of code that is below to concatenate the fields if the value for the row in emergency_overdue is NULL?
import arcpy
calcExpression = "!ORIGDTDATE!+\" \"+ !ORIGDTTIME!"
arcpy.CalculateField_management(self.line_ticket_feature_class,"emergency_overdue",calcExpression,"PYTHON_9.3")
arcpy.CalculateField_management(self.poly_ticket_feature_class,"emergency_overdue",calcExpression,"PYTHON_9.3")