<?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 Re: Using date attribute from an AGSGraphic's attributes in ArcGIS Runtime SDK for iOS Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/using-date-attribute-from-an-agsgraphic-s/m-p/648436#M5777</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The value for the attribute, from what I can tell in the debugger, is a long with value 1253577600000. On the ArcGIS Server REST page for the same feature and attribute, it displays 2009/09/22 00:00:00 UTC.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Mar 2012 12:19:14 GMT</pubDate>
    <dc:creator>TJMott</dc:creator>
    <dc:date>2012-03-15T12:19:14Z</dc:date>
    <item>
      <title>Using date attribute from an AGSGraphic's attributes</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/using-date-attribute-from-an-agsgraphic-s/m-p/648434#M5775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have an AGSGraphic that was returned from an AGSQueryTask. I want to do some custom formatting to the attributes before displaying them to the user. I have an attribute that I know is a valid date by checking the feature in ArcGIS Server's REST page for the feature class, but I'm not sure what the value I'm actually getting is. I tried casting it to an NSDate pointer and got a bad object. What do I need to do to this value to get a valid NSDate from it?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2012 20:01:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/using-date-attribute-from-an-agsgraphic-s/m-p/648434#M5775</guid>
      <dc:creator>TJMott</dc:creator>
      <dc:date>2012-03-14T20:01:04Z</dc:date>
    </item>
    <item>
      <title>Re: Using date attribute from an AGSGraphic's attributes</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/using-date-attribute-from-an-agsgraphic-s/m-p/648435#M5776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The attribute is nothing but a string. If it's a valid date string then you can convert it into NSDate with following code. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;NSDateFormatter *dateFormatter = [[[NSDateFormatter alloc]init]autorelease];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//if you want to set any time zoneand date format&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//[dateFormatter setTimeZone:[NSTimeZone timeZoneWithName:@"GMT"]];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//[dateFormatter setDateFormat:@"MM/dd/yyyy hh:mma"];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;NSDate *date = [dateFormatter dateFromString:dateStringAttribute];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;NSLog(@"date: %@",date);&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, 14 Mar 2012 22:27:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/using-date-attribute-from-an-agsgraphic-s/m-p/648435#M5776</guid>
      <dc:creator>NimeshJarecha</dc:creator>
      <dc:date>2012-03-14T22:27:05Z</dc:date>
    </item>
    <item>
      <title>Re: Using date attribute from an AGSGraphic's attributes</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/using-date-attribute-from-an-agsgraphic-s/m-p/648436#M5777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The value for the attribute, from what I can tell in the debugger, is a long with value 1253577600000. On the ArcGIS Server REST page for the same feature and attribute, it displays 2009/09/22 00:00:00 UTC.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2012 12:19:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/using-date-attribute-from-an-agsgraphic-s/m-p/648436#M5777</guid>
      <dc:creator>TJMott</dc:creator>
      <dc:date>2012-03-15T12:19:14Z</dc:date>
    </item>
    <item>
      <title>Re: Using date attribute from an AGSGraphic's attributes</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/using-date-attribute-from-an-agsgraphic-s/m-p/648437#M5778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I just figured it out. I can take the value, divide by 1000, then convert it to a float (checking in the debugger proves that NSDate treats 1253577600.0 differently than 1253577600), then pass it as a parameter to NSDate dateWithTimeIntervalSince1970, and it works.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2012 12:24:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/using-date-attribute-from-an-agsgraphic-s/m-p/648437#M5778</guid>
      <dc:creator>TJMott</dc:creator>
      <dc:date>2012-03-15T12:24:56Z</dc:date>
    </item>
    <item>
      <title>Re: Using date attribute from an AGSGraphic's attributes</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/using-date-attribute-from-an-agsgraphic-s/m-p/648438#M5779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I was about to suggest that only....good to know that you figured out! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&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>Thu, 15 Mar 2012 14:02:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/using-date-attribute-from-an-agsgraphic-s/m-p/648438#M5779</guid>
      <dc:creator>NimeshJarecha</dc:creator>
      <dc:date>2012-03-15T14:02:11Z</dc:date>
    </item>
  </channel>
</rss>

