Add Features - Date problems
Hi all,
I have a form that collects attribute information, this is when using the AddAttributes tool.
This all works until I use a date. On the form I have a DatePicker, format Long. The argument is then output argument of type DateTime.
So the user selects a date "April-05-13".
I do an alert on the Date variable and it outputs "05/04/2013 12:00:00 AM"
AddFeatures fails with an error "Aborted exception: 'Unable to complete operation'."
Any tips or suggestions on how to handle date input from a user, that will be used to add or update feature attributes?
Thanks!!
-
Ok, just trying to hardcode a date for now to get anything working...
I try:
oGraphic.Attributes("ColumnName") = "01/012013"
Then I add oGraphic to a Graphics Collection.
Then I use AddFeatures to add the Graphics Collection to the Feature Layer.
Other attributes will update just fine. But not a date. I have tried various date formats, I can't get anything to work so far.
Any ideas?
Thanks,
0 -
oops, typo, I mean to say:
oGraphic.Attributes("ColumnName") = "01/01/2013"
0
Please sign in to leave a comment.
Comments
2 comments