gcarballo

editing a field of type date

Discussion created by gcarballo on Feb 14, 2011
Latest reply on Feb 28, 2011 by ctinnell
I am modifying the FeatureLayerEditingSample code to work to edit my own point layer. I am able to save my edits successfully as long as there are no fields typed as "Date" on my feature class. What is the correct method to save a date?

In the sample, the date field is of type string and gets assigned using this line:
[self.feature.attributes setValue:[self.dateFormat stringFromDate:self.date] forKey:@"req_date"];

Thanks

Outcomes