<?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 Date format issue using Select by Attribute Widget in ArcGIS Viewer for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/date-format-issue-using-select-by-attribute-widget/m-p/710227#M21552</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using the Select by Attribute Widget (thanks to mhoyland) for my application using Flex Viewer 2.3 and want to be able to query date ranges. It's working in respect to populating the values, but the date format appears to be a long date (ex. 10598686600000). Furthermore, when I do execute the query, I get this error message: &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;[RPC Fault faultString="Unable to complete&amp;nbsp; operation." faultCode="400" faultDetail="Unable to complete Query operation."]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In my MXD the field value is set to date - and when I perform a definition query, it works just fine. The REST endpoint value for the Date field (named SampleDa_1) looks like this: &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;SampleDa_1 (Type: esriFieldTypeDate, Alias: SampleDa_1, Length: 8 ) &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Presumably there is something more underlying causing this problem. Any help is greatly appreciated! See screenshot below.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;PS - By default, the Widget is named Selection, but I renamed it to be QUERY to mitigate my client's confusion. &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;Also - I am using ArcGIS Server 10&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Chris&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2011 20:20:00 GMT</pubDate>
    <dc:creator>ChristopherRice</dc:creator>
    <dc:date>2011-06-15T20:20:00Z</dc:date>
    <item>
      <title>Date format issue using Select by Attribute Widget</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/date-format-issue-using-select-by-attribute-widget/m-p/710227#M21552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using the Select by Attribute Widget (thanks to mhoyland) for my application using Flex Viewer 2.3 and want to be able to query date ranges. It's working in respect to populating the values, but the date format appears to be a long date (ex. 10598686600000). Furthermore, when I do execute the query, I get this error message: &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;[RPC Fault faultString="Unable to complete&amp;nbsp; operation." faultCode="400" faultDetail="Unable to complete Query operation."]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In my MXD the field value is set to date - and when I perform a definition query, it works just fine. The REST endpoint value for the Date field (named SampleDa_1) looks like this: &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;SampleDa_1 (Type: esriFieldTypeDate, Alias: SampleDa_1, Length: 8 ) &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Presumably there is something more underlying causing this problem. Any help is greatly appreciated! See screenshot below.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;PS - By default, the Widget is named Selection, but I renamed it to be QUERY to mitigate my client's confusion. &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;Also - I am using ArcGIS Server 10&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Chris&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2011 20:20:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/date-format-issue-using-select-by-attribute-widget/m-p/710227#M21552</guid>
      <dc:creator>ChristopherRice</dc:creator>
      <dc:date>2011-06-15T20:20:00Z</dc:date>
    </item>
  </channel>
</rss>

