How can I use the InsertCursor method with DATE type field? I'm trying to use this code, but have an error (progresscheck - table in my gdb, date - field with date data type):
...
rows = gp.InsertCursor(progresscheck)
row = rows.NewRow()
row.date = "22.10.2010"
...
or
...
rows = gp.InsertCursor(progresscheck)
row = rows.NewRow()
row.date = time.strftime("%d.%m.%Y",time.localtime(time.time()))
...
Error message:
Traceback (most recent call last):
File "C:\work\progress\1\1.py", line 61, in <module>
row.date = time.strftime("%d.%m.%Y",time.localtime(time.time()))
RuntimeError: ERROR 999999: Error executing function.