By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,795 Members | 1,216 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,795 IT Pros & Developers. It's quick & easy.

updating text field with date

P: 1
HI Folks,

I am trying to update a text field coulmn in a table with date data. The script is as follows:

gp.calculatefield_management("ch_er_primary.shp", "FINAL_CDT", "FORMAT([FINAL_ACTI],""mm/dd/yyyy"")")

here the final_cdt : is string field and final_acti is date field.

The error I am getting:
Traceback (most recent call last):
File "V:\data\tst\", line 35, in ?
gp.calculatefield_management("ch_er_primary.shp", "FINAL_CDT", "FORMAT([FINAL_ACTI],""mm/dd/yyyy"")")
File "<COMObject esriGeoprocessing.GpDispatch.1>", line 2, in calculatefield_management
com_error: (-2147467259, 'Unspecified error', None, None)

I really appreciate any help I could get on this problem.

Thanks in advance.

Aug 28 '06 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.