<?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: Search Widget Date Problems in ArcGIS Viewer for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/search-widget-date-problems/m-p/210075#M6441</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Nicholas,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; So can I take it that the other query did work (Circuit Like '[value]')?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Since all your dates have a time of 06:00:00 then you should use:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;&amp;lt;expression&amp;gt;(Date_Off = '[value] 06:00:00'&amp;lt;/expression&amp;gt;&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;SPAN&gt;or try&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;&amp;lt;expression&amp;gt;(Date_Off = date'[value] 06:00:00'&amp;lt;/expression&amp;gt;&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Jan 2014 14:53:55 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2014-01-02T14:53:55Z</dc:date>
    <item>
      <title>Search Widget Date Problems</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/search-widget-date-problems/m-p/210070#M6436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I want to first start by saying that I???m rather new to&amp;nbsp; Flex Viewer, and don???t have much of a clue to what I???m supposed to do. I have been trying to figure out how to configure the search widget to find dates. No matter how many different ways I try I can???t seem to figure out how I???m supposed to format my expression to get the results back for the date.&amp;nbsp; I???m using SQL 2012 Express, Flex Viewer 3.4, and ArcGIS Server 10.2. I have attached my xml for the search widget.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jan 2014 12:08:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/search-widget-date-problems/m-p/210070#M6436</guid>
      <dc:creator>NicholasGlover</dc:creator>
      <dc:date>2014-01-02T12:08:46Z</dc:date>
    </item>
    <item>
      <title>Re: Search Widget Date Problems</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/search-widget-date-problems/m-p/210071#M6437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Nicholas,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Your query expression looks fine assuming that the date stored in SQL Server Express has a time portion of midnight.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You can try a more open query if you are unsure of the time element of your date field.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;where Date_Off between '[value] 12:00:00.000' and '[value] 24:59:59.997'&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jan 2014 12:47:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/search-widget-date-problems/m-p/210071#M6437</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2014-01-02T12:47:48Z</dc:date>
    </item>
    <item>
      <title>Re: Search Widget Date Problems</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/search-widget-date-problems/m-p/210072#M6438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I keep getting the error " RPC Fault faultString= "unable to complete operation." faultCode= "400" faultDetail="" ". I have my shape and objectid field showing on my feature service&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jan 2014 14:05:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/search-widget-date-problems/m-p/210072#M6438</guid>
      <dc:creator>NicholasGlover</dc:creator>
      <dc:date>2014-01-02T14:05:19Z</dc:date>
    </item>
    <item>
      <title>Re: Search Widget Date Problems</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/search-widget-date-problems/m-p/210073#M6439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Nicholas,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; Have you tried another query on theis layer (i.e. a non-date query)?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jan 2014 14:22:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/search-widget-date-problems/m-p/210073#M6439</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2014-01-02T14:22:08Z</dc:date>
    </item>
    <item>
      <title>Re: Search Widget Date Problems</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/search-widget-date-problems/m-p/210074#M6440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes, I tried one for a layer called Circuits using the expression " Circuit Like '[value]' ". I went to my SQL server and took a look at the format that my Date_Off field is in. I took a screenshot so that you can look at the format that it is in.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jan 2014 14:38:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/search-widget-date-problems/m-p/210074#M6440</guid>
      <dc:creator>NicholasGlover</dc:creator>
      <dc:date>2014-01-02T14:38:01Z</dc:date>
    </item>
    <item>
      <title>Re: Search Widget Date Problems</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/search-widget-date-problems/m-p/210075#M6441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Nicholas,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; So can I take it that the other query did work (Circuit Like '[value]')?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Since all your dates have a time of 06:00:00 then you should use:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;&amp;lt;expression&amp;gt;(Date_Off = '[value] 06:00:00'&amp;lt;/expression&amp;gt;&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;SPAN&gt;or try&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;&amp;lt;expression&amp;gt;(Date_Off = date'[value] 06:00:00'&amp;lt;/expression&amp;gt;&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jan 2014 14:53:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/search-widget-date-problems/m-p/210075#M6441</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2014-01-02T14:53:55Z</dc:date>
    </item>
    <item>
      <title>Re: Search Widget Date Problems</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/search-widget-date-problems/m-p/210076#M6442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The first one seem to do the job Robert, but I ran across another problem where the database has stored some of my times as 06:00:00 and 05:00:00. To fix this I used the statement below:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt; &amp;lt;expression&amp;gt;Date_Off between&amp;nbsp; '[value] 01:00:00' and '[value] 12:00:00'&amp;lt;/expression&amp;gt; &lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks so much for your help!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jan 2014 16:55:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/search-widget-date-problems/m-p/210076#M6442</guid>
      <dc:creator>NicholasGlover</dc:creator>
      <dc:date>2014-01-02T16:55:58Z</dc:date>
    </item>
  </channel>
</rss>

