AnsweredAssumed Answered

Clear date field value

Question asked by steve614 on Apr 19, 2012
Latest reply on Apr 24, 2013 by steve614
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?

These doesn't work:

[editFeature.attributes setValue:nil forKey:@"SOURCE_DATE"];  ...  [editFeature.attributes setValue:NULL forKey:@"SOURCE_DATE"];  ...  [editFeature.attributes setValue:@"" forKey:@"SOURCE_DATE"];