How to enter date with arcpy.GetParameterAsText with arcpy?

المشرف العام

Administrator
طاقم الإدارة
I want to allow users to enter a date as a parameter through a dialog window in a toolbox script.

I have obviously defined the field with a "Date" data type but something is wrong with the formatting.

arcpy.CalculateField_management(fc, "Date", "01.07.2015", "PYTHON", "")If I enter "01.07.2015" directly in the FieldCalculator in ArcMap it works, but I can´t define it as a paramter in arcpy? What am I doing wrong?



أكثر...
 
أعلى