bearda

Convert Time Field

Discussion created by bearda on Feb 7, 2014
Latest reply on Feb 9, 2014 by timmhay
This tool seems very strait forward but is causing issues when put into python. Works fine in ArcMap and I get the expected results.

My Input Time Field(Text Field) looks like:
2014-02-01 02:11 AM

inputTimeField = "Incident_Date___Time"
inputTimeFormat = "1033;yyyy-MM-dd HH:mm tt"
outputDateField = "IncDateTime"                      
arcpy.ConvertTimeField_management("myFGDB",inputTimeField,inputTimeFormat,outputDateField)
arcpy.DeleteField_management(blot,"DateTime")


After the tool is run the IncDateTime Field comes back as:
1/1/2001

Am I missing something here?

Attachments

Outcomes