Any idea why the following code will not work? If I take out the " " and one +, it will run, but not the result I need.#dateTimeExp = "!AccDate! + " " + !AccTime!" dateTimeExp = "str(!AccDate! + " " + !AccTime!)" arcpy.CalculateField_management(outCrash, "AccDT", dateTimeExp, "PYTHON")
It returns the following error:ExecuteError: ERROR 000539: Error running expression: str("4/1/2005" + + "7:35:00 AM") <type 'exceptions.TypeError'>: bad operand type for unary +: 'str'Failed to execute (CalculateField).