<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Clear date field value in ArcGIS Runtime SDK for iOS Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/clear-date-field-value/m-p/207000#M1898</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm working with an attribute value of field type DATE.&amp;nbsp; I can successfully utilize a DatePicker to edit the field, however I'd also like the functionality to delete the value.&amp;nbsp; I can provide the same functionality on a TEXT field by sending an empty string.&amp;nbsp; 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.&amp;nbsp; Ideas?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;These doesn't work:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;[editFeature.attributes setValue:nil forKey:@"SOURCE_DATE"];&amp;nbsp; ...&amp;nbsp; [editFeature.attributes setValue:NULL forKey:@"SOURCE_DATE"];&amp;nbsp; ...&amp;nbsp; [editFeature.attributes setValue:@"" forKey:@"SOURCE_DATE"];&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Apr 2012 17:29:52 GMT</pubDate>
    <dc:creator>SteveLettau</dc:creator>
    <dc:date>2012-04-19T17:29:52Z</dc:date>
    <item>
      <title>Clear date field value</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/clear-date-field-value/m-p/207000#M1898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm working with an attribute value of field type DATE.&amp;nbsp; I can successfully utilize a DatePicker to edit the field, however I'd also like the functionality to delete the value.&amp;nbsp; I can provide the same functionality on a TEXT field by sending an empty string.&amp;nbsp; 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.&amp;nbsp; Ideas?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;These doesn't work:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;[editFeature.attributes setValue:nil forKey:@"SOURCE_DATE"];&amp;nbsp; ...&amp;nbsp; [editFeature.attributes setValue:NULL forKey:@"SOURCE_DATE"];&amp;nbsp; ...&amp;nbsp; [editFeature.attributes setValue:@"" forKey:@"SOURCE_DATE"];&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Apr 2012 17:29:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/clear-date-field-value/m-p/207000#M1898</guid>
      <dc:creator>SteveLettau</dc:creator>
      <dc:date>2012-04-19T17:29:52Z</dc:date>
    </item>
    <item>
      <title>Re: Clear date field value</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/clear-date-field-value/m-p/207001#M1899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Steve,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can set NULL value in the DATE field like this...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;[editFeature.attributes setValue:[NSNull null] forKey:@"SOURCE_DATE"];&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Nimesh&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Apr 2012 16:27:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/clear-date-field-value/m-p/207001#M1899</guid>
      <dc:creator>NimeshJarecha</dc:creator>
      <dc:date>2012-04-24T16:27:52Z</dc:date>
    </item>
    <item>
      <title>Re: Clear date field value</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/clear-date-field-value/m-p/207002#M1900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Wow, you are indeed the man!&amp;nbsp; Thanks for the help.&amp;nbsp; Steve&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Apr 2012 22:28:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/clear-date-field-value/m-p/207002#M1900</guid>
      <dc:creator>SteveLettau</dc:creator>
      <dc:date>2012-04-24T22:28:49Z</dc:date>
    </item>
    <item>
      <title>Re: Clear date field value</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/clear-date-field-value/m-p/207003#M1901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Nimesh, I've run into a problem since upgrading my iOS SDK to 10.1.1.&amp;nbsp; Now I cannot clear out dates using setAttribute:[NSNull null].&amp;nbsp; Also, when adding features through my app, all date fields are defaulting to January 1, 1970.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've tried the new setAttributeToNullForKey: but that didn't work either.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any idea what could be happening with my date fields after upgrade to 10.1.1?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks, Steve&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Apr 2013 20:21:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/clear-date-field-value/m-p/207003#M1901</guid>
      <dc:creator>SteveLettau</dc:creator>
      <dc:date>2013-04-19T20:21:10Z</dc:date>
    </item>
    <item>
      <title>Re: Clear date field value</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/clear-date-field-value/m-p/207004#M1902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;AGSGraphic's setAttributeToNullForKey should work. I just re-tested it and it works like a charm.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Nimesh&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Apr 2013 16:21:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/clear-date-field-value/m-p/207004#M1902</guid>
      <dc:creator>NimeshJarecha</dc:creator>
      <dc:date>2013-04-22T16:21:06Z</dc:date>
    </item>
    <item>
      <title>Re: Clear date field value</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/clear-date-field-value/m-p/207005#M1903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I may be missing something.&amp;nbsp; I can use setAttributeToNullForKey, but instead of setting the value to Null, it reverts to 1/1/1970.&amp;nbsp; To add some more info, I'm using ArcSDE 10.1 on SQL Server 2012.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;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.&amp;nbsp; This wasn't the case with iOS SDK 2.3, it appeared when I upgraded to 10.1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm attaching a small screen shot from ArcCatalog to show the issue.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Apr 2013 17:40:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/clear-date-field-value/m-p/207005#M1903</guid>
      <dc:creator>SteveLettau</dc:creator>
      <dc:date>2013-04-23T17:40:30Z</dc:date>
    </item>
    <item>
      <title>Re: Clear date field value</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/clear-date-field-value/m-p/207006#M1904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Please intercept request/response from your app to server for further investigation. Do you see null is being sent to server from your app?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Nimesh&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Apr 2013 20:44:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/clear-date-field-value/m-p/207006#M1904</guid>
      <dc:creator>NimeshJarecha</dc:creator>
      <dc:date>2013-04-24T20:44:38Z</dc:date>
    </item>
    <item>
      <title>Re: Clear date field value</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/clear-date-field-value/m-p/207007#M1905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I did and as far as I can tell, it's null.&amp;nbsp; There's definitely no indication of 1/1/1970.&amp;nbsp; I've logged an incident with technical support and will await word from them.&amp;nbsp; Thanks, Steve&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Apr 2013 22:56:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/clear-date-field-value/m-p/207007#M1905</guid>
      <dc:creator>SteveLettau</dc:creator>
      <dc:date>2013-04-24T22:56:03Z</dc:date>
    </item>
  </channel>
</rss>

