<?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 Did the date format change for Query, REST, Post, JSON responses at ags 10? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/did-the-date-format-change-for-query-rest-post/m-p/478144#M44452</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;On my 9.3.1 server i get this response:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; "ORIG_HRZ_COLL_DATE" : "1/5/2011 12:00:00 AM"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But on my 10 server i get this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; "ORIG_HRZ_COLL_DATE" : 1294185600000&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Am I in error here or was there some fundamental change made in this area going from ags 9.3.1 to ags 10 or is it in the js api?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If yes, then is there a list of all changes like this somewhere? It's very frustrating to have to find them like easter eggs.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Jan 2011 15:47:15 GMT</pubDate>
    <dc:creator>KevinGooss</dc:creator>
    <dc:date>2011-01-04T15:47:15Z</dc:date>
    <item>
      <title>Did the date format change for Query, REST, Post, JSON responses at ags 10?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/did-the-date-format-change-for-query-rest-post/m-p/478144#M44452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;On my 9.3.1 server i get this response:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; "ORIG_HRZ_COLL_DATE" : "1/5/2011 12:00:00 AM"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But on my 10 server i get this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; "ORIG_HRZ_COLL_DATE" : 1294185600000&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Am I in error here or was there some fundamental change made in this area going from ags 9.3.1 to ags 10 or is it in the js api?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If yes, then is there a list of all changes like this somewhere? It's very frustrating to have to find them like easter eggs.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Jan 2011 15:47:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/did-the-date-format-change-for-query-rest-post/m-p/478144#M44452</guid>
      <dc:creator>KevinGooss</dc:creator>
      <dc:date>2011-01-04T15:47:15Z</dc:date>
    </item>
    <item>
      <title>Re: Did the date format change for Query, REST, Post, JSON responses at ags 10?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/did-the-date-format-change-for-query-rest-post/m-p/478145#M44453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've noticed it too. It is now presented as epoch millisec since 01/01/1970 GMT, and you have to handle timezone too.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Jan 2011 17:40:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/did-the-date-format-change-for-query-rest-post/m-p/478145#M44453</guid>
      <dc:creator>NianweiLiu</dc:creator>
      <dc:date>2011-01-04T17:40:45Z</dc:date>
    </item>
    <item>
      <title>Re: Did the date format change for Query, REST, Post, JSON responses at ags 10?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/did-the-date-format-change-for-query-rest-post/m-p/478146#M44454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;this is disappointing. and to find out this way doesn't make it any easier to swallow.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Jan 2011 17:41:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/did-the-date-format-change-for-query-rest-post/m-p/478146#M44454</guid>
      <dc:creator>KevinGooss</dc:creator>
      <dc:date>2011-01-04T17:41:58Z</dc:date>
    </item>
    <item>
      <title>Re: Did the date format change for Query, REST, Post, JSON responses at ags 10?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/did-the-date-format-change-for-query-rest-post/m-p/478147#M44455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The result set at 10 now also includes the data type of each return field in the alias collection that precedes the results. So now you cannot just ignore the data type and return it to the users eyes or else they will see that ugly date value. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Now I'm wondering if there are other types that have been modified.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Not pretty.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Jan 2011 17:53:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/did-the-date-format-change-for-query-rest-post/m-p/478147#M44455</guid>
      <dc:creator>KevinGooss</dc:creator>
      <dc:date>2011-01-04T17:53:33Z</dc:date>
    </item>
    <item>
      <title>Re: Did the date format change for Query, REST, Post, JSON responses at ags 10?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/did-the-date-format-change-for-query-rest-post/m-p/478148#M44456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm also having issues now with inserting dates into features that I add to ags via my SOE.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If i insert a new record and set the date field to 01/09/2011 and then i turn around and query that feature i get the epoch format back which i convert to .... 01/08/2011.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a time zone issue going on or something?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Perhaps someone who was involved with the changes in the date handling could throw together some notes or, say, documentation about what was done and how to deal with the new way of doing things?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jan 2011 15:06:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/did-the-date-format-change-for-query-rest-post/m-p/478148#M44456</guid>
      <dc:creator>KevinGooss</dc:creator>
      <dc:date>2011-01-13T15:06:59Z</dc:date>
    </item>
    <item>
      <title>Re: Did the date format change for Query, REST, Post, JSON responses at ags 10?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/did-the-date-format-change-for-query-rest-post/m-p/478149#M44457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Here are a few links that might help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This info is from the rest doc:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/arcgisserver/10.0/apis/rest/mapserver.html#response"&gt;http://help.arcgis.com/en/arcgisserver/10.0/apis/rest/mapserver.html#response&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;Support for time-aware map services was added at 10. If the map supports quering and exporting maps based on time, the response will include a timeInfo property which includes information such as the map's time extent and the map's native time reference. However, note that the REST API always encodes time in UTC (milliseconds from epoch).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We also have some information on working with time in the JS API 'Working with time-aware layers' help doc:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/EN/webapi/javascript/arcgis/help/jshelp_start.htm#jshelp/inside_temporal.htm"&gt;http://help.arcgis.com/EN/webapi/javascript/arcgis/help/jshelp_start.htm#jshelp/inside_temporal.htm&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jan 2011 14:08:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/did-the-date-format-change-for-query-rest-post/m-p/478149#M44457</guid>
      <dc:creator>KellyHutchins</dc:creator>
      <dc:date>2011-01-14T14:08:17Z</dc:date>
    </item>
    <item>
      <title>Re: Did the date format change for Query, REST, Post, JSON responses at ags 10?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/did-the-date-format-change-for-query-rest-post/m-p/478150#M44458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If I had a date field with local time zone datetimes how would I get it to stop showing times 10 hours ahead?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ie. point collected 10am local time gets shown as 8pm.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2011 01:20:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/did-the-date-format-change-for-query-rest-post/m-p/478150#M44458</guid>
      <dc:creator>PeterTimmers</dc:creator>
      <dc:date>2011-05-24T01:20:28Z</dc:date>
    </item>
    <item>
      <title>Re: Did the date format change for Query, REST, Post, JSON responses at ags 10?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/did-the-date-format-change-for-query-rest-post/m-p/478151#M44459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Kelly,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is this considered a new feature rather than a bug, then?&amp;nbsp; There really should be some better documentation explaining why the REST date format has changed between 9.3.1 &amp;amp; 10... and how to handle it in the Web APIs...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Nov 2011 22:49:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/did-the-date-format-change-for-query-rest-post/m-p/478151#M44459</guid>
      <dc:creator>DanMcCoy</dc:creator>
      <dc:date>2011-11-04T22:49:26Z</dc:date>
    </item>
    <item>
      <title>Re: Did the date format change for Query, REST, Post, JSON responses at ags 10?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/did-the-date-format-change-for-query-rest-post/m-p/478152#M44460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The links provided don't help has anyone figured this out. I really don't want to recode my flex app to support this.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Dec 2011 21:07:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/did-the-date-format-change-for-query-rest-post/m-p/478152#M44460</guid>
      <dc:creator>NickHetrick</dc:creator>
      <dc:date>2011-12-06T21:07:19Z</dc:date>
    </item>
    <item>
      <title>Re: Did the date format change for Query, REST, Post, JSON responses at ags 10?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/did-the-date-format-change-for-query-rest-post/m-p/478153#M44461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Luckily the AMF format does not change the date values. Switching to using amf instead of json worked for me in my flex app. Not a solution for others using JS and Silverlight though.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Dec 2011 21:32:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/did-the-date-format-change-for-query-rest-post/m-p/478153#M44461</guid>
      <dc:creator>NickHetrick</dc:creator>
      <dc:date>2011-12-06T21:32:13Z</dc:date>
    </item>
    <item>
      <title>Re: Did the date format change for Query, REST, Post, JSON responses at ags 10?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/did-the-date-format-change-for-query-rest-post/m-p/478154#M44462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We just upgraded our ArcGIS Server from 9.3 to 10.&amp;nbsp; We're now having that date issue described above. How is everyone handling this?&amp;nbsp; How do I fix my Flex widgets and JavaScript apps to display the date/time fields the way we're used to seeing them (mm/dd/yyy hh:mm:ss)?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Stephanie&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Feb 2012 13:27:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/did-the-date-format-change-for-query-rest-post/m-p/478154#M44462</guid>
      <dc:creator>StephanieWidas</dc:creator>
      <dc:date>2012-02-07T13:27:55Z</dc:date>
    </item>
    <item>
      <title>Re: Did the date format change for Query, REST, Post, JSON responses at ags 10?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/did-the-date-format-change-for-query-rest-post/m-p/478155#M44463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I feel your pain. This was a large hassle. Don't know about flex but this was helpful for me in js:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date.prototype.toFormattedDateString = function () {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return isNaN(this) ? 'NaN' :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _addLeadingZero(this.getUTCMonth() + 1),&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _addLeadingZero(this.getUTCDate()),&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.getUTCFullYear()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ].join('/');&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; };&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date.prototype.toFormattedDateTimeString = function () {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return isNaN(this) ? 'NaN' :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _addLeadingZero(this.getUTCMonth() + 1),&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _addLeadingZero(this.getUTCDate()),&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.getUTCFullYear()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ].join('/') + " " + _addLeadingZero(this.getUTCHours()) + ":" + _addLeadingZero(this.getUTCMinutes()) + ":" + _addLeadingZero(this.getUTCSeconds());&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; };&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Feb 2012 18:54:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/did-the-date-format-change-for-query-rest-post/m-p/478155#M44463</guid>
      <dc:creator>KevinGooss</dc:creator>
      <dc:date>2012-02-07T18:54:23Z</dc:date>
    </item>
  </channel>
</rss>

