I'm working with an attribute value of field type DATE. I can successfully utilize a DatePicker to edit the field, however I'd also like the functionality to delete the value. I can provide the same functionality on a TEXT field by sending an empty string. For the DATE field, I'm assuming I need to pass something like a nil or NULL value to the field, however this is not working. Ideas?
Nimesh, I've run into a problem since upgrading my iOS SDK to 10.1.1. Now I cannot clear out dates using setAttribute:[NSNull null]. Also, when adding features through my app, all date fields are defaulting to January 1, 1970.
I've tried the new setAttributeToNullForKey: but that didn't work either.
Any idea what could be happening with my date fields after upgrade to 10.1.1?
I may be missing something. I can use setAttributeToNullForKey, but instead of setting the value to Null, it reverts to 1/1/1970. To add some more info, I'm using ArcSDE 10.1 on SQL Server 2012.
To add to the confusion, I can add a feature in ArcGIS Desktop and the date field defaults to NULL, but when I add (or edit) the feature through my iOS app, the date gets set to 1/1/1970. This wasn't the case with iOS SDK 2.3, it appeared when I upgraded to 10.1.
I'm attaching a small screen shot from ArcCatalog to show the issue.