<?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 how to&amp;nbsp; set the queryfilter.where with date&amp;nbsp; type in ArcGIS for Windows Mobile Questions</title>
    <link>https://community.esri.com/t5/arcgis-for-windows-mobile-questions/how-to-nbsp-set-the-queryfilter-where-with-date/m-p/408111#M1762</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;i&amp;nbsp; want to search feature by date?code like this&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
 string qstr = "??????????='" + System.DateTime.Today.ToShortDateString()+ "'";
ESRI.ArcGIS.Mobile.QueryFilter qf = new ESRI.ArcGIS.Mobile.QueryFilter(qstr, true);
&amp;nbsp;&amp;nbsp; FeatureDataTable fdtabel = featureLayer.GetDataTable(qf, null);
&amp;nbsp;&amp;nbsp;&amp;nbsp; dataGridView1.DataSource = fdtabel;

&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;error:The 'where clause' is invalid.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;whre's wrong&amp;nbsp; ?anyone can help me?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Nov 2010 03:42:34 GMT</pubDate>
    <dc:creator>yanli</dc:creator>
    <dc:date>2010-11-03T03:42:34Z</dc:date>
    <item>
      <title>how to  set the queryfilter.where with date  type</title>
      <link>https://community.esri.com/t5/arcgis-for-windows-mobile-questions/how-to-nbsp-set-the-queryfilter-where-with-date/m-p/408111#M1762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;i&amp;nbsp; want to search feature by date?code like this&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
 string qstr = "??????????='" + System.DateTime.Today.ToShortDateString()+ "'";
ESRI.ArcGIS.Mobile.QueryFilter qf = new ESRI.ArcGIS.Mobile.QueryFilter(qstr, true);
&amp;nbsp;&amp;nbsp; FeatureDataTable fdtabel = featureLayer.GetDataTable(qf, null);
&amp;nbsp;&amp;nbsp;&amp;nbsp; dataGridView1.DataSource = fdtabel;

&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;error:The 'where clause' is invalid.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;whre's wrong&amp;nbsp; ?anyone can help me?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Nov 2010 03:42:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-for-windows-mobile-questions/how-to-nbsp-set-the-queryfilter-where-with-date/m-p/408111#M1762</guid>
      <dc:creator>yanli</dc:creator>
      <dc:date>2010-11-03T03:42:34Z</dc:date>
    </item>
    <item>
      <title>Re: how to  set the queryfilter.where with date  type</title>
      <link>https://community.esri.com/t5/arcgis-for-windows-mobile-questions/how-to-nbsp-set-the-queryfilter-where-with-date/m-p/408112#M1763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Have a look at my thread, there's a solution posted:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/threads/13983-A-Simple-Query-of-a-FeatureClass-%28Help-Please%29"&gt;http://forums.arcgis.com/threads/13983-A-Simple-Query-of-a-FeatureClass-%28Help-Please%29&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The first thing I see is you where clause may not be correct.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1) have messagebox pop up and show you your querystring (qstr).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2) The result from your query string should be&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;修�?��?��?� = 'Oct. 10, 2010'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This is just an example.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But if you need to see those apostrophe around the value (single quotes).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you get a result like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;修�?��?��?� = Oct. 10, 2010&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;or&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;修�?��?��?� = "Oct. 10, 2010"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You will get an error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My code that I used is to solve this is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;string whereClause = "UserID = " + "'" + user + "'";&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As you can see wrapped around user there is, quotation marks (double quotes), apostrophe (single quotes), quotation marks (double quotes) then a plus sign and then the variable (in your case Date) and then the rest is the same.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Let me know if this helps.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Nov 2010 12:57:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-for-windows-mobile-questions/how-to-nbsp-set-the-queryfilter-where-with-date/m-p/408112#M1763</guid>
      <dc:creator>AkhilParujanwala</dc:creator>
      <dc:date>2010-11-03T12:57:06Z</dc:date>
    </item>
    <item>
      <title>Re: how to  set the queryfilter.where with date  type</title>
      <link>https://community.esri.com/t5/arcgis-for-windows-mobile-questions/how-to-nbsp-set-the-queryfilter-where-with-date/m-p/408113#M1764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;HI,AkhilP &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;i get the result from my query string &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;like this&amp;nbsp; 修�?��?��?� = 'Oct. 10, 2010'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;it is still error &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;then i&amp;nbsp; find in&amp;nbsp; the 9.2 help&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;i write query string&amp;nbsp; like this "&amp;nbsp; 修�?��?��?� =date&amp;nbsp; '2010-11-03'&amp;nbsp; "&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;it's correct!!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;thank you all the same&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Nov 2010 23:18:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-for-windows-mobile-questions/how-to-nbsp-set-the-queryfilter-where-with-date/m-p/408113#M1764</guid>
      <dc:creator>yanli</dc:creator>
      <dc:date>2010-11-03T23:18:06Z</dc:date>
    </item>
  </channel>
</rss>

