<?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: read ESRI FileGeoDataBase / sql filter on date field in File Geodatabase API Questions</title>
    <link>https://community.esri.com/t5/file-geodatabase-api-questions/read-esri-filegeodatabase-sql-filter-on-date-field/m-p/546820#M885</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This "date_field &amp;lt; date '2013-07-09 17:34:49' " should work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp; EnumRows attrQueryRows;
&amp;nbsp; if ((hr = table.Search(L"*", L"UP_DATE &amp;gt; date '2007-05-23 11:13:59'", true, attrQueryRows)) != S_OK)
&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp; wcout &amp;lt;&amp;lt; "An error occurred while performing the attribute query." &amp;lt;&amp;lt; endl;
&amp;nbsp;&amp;nbsp;&amp;nbsp; ErrorInfo::GetErrorDescription(hr, errorText);
&amp;nbsp;&amp;nbsp;&amp;nbsp; wcout &amp;lt;&amp;lt; errorText &amp;lt;&amp;lt; "(" &amp;lt;&amp;lt; hr &amp;lt;&amp;lt; ")." &amp;lt;&amp;lt; endl;
&amp;nbsp;&amp;nbsp;&amp;nbsp; return -1;
&amp;nbsp; }&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 23:39:44 GMT</pubDate>
    <dc:creator>LanceShipman</dc:creator>
    <dc:date>2021-12-11T23:39:44Z</dc:date>
    <item>
      <title>read ESRI FileGeoDataBase / sql filter on date field</title>
      <link>https://community.esri.com/t5/file-geodatabase-api-questions/read-esri-filegeodatabase-sql-filter-on-date-field/m-p/546819#M884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a file geodatabase (10.1) and want to read out data by SQL-select on date fields, but I can`t get it working.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;..tried the following codes:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;....where date_field &amp;lt; '2013/07/09 17:34:49' &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;....where date_field &amp;lt; '2013-07-09 17:34:49'&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;....where "date_field" &amp;lt; date '2013-07-09 17:34:49'&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;but nothing works.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ralf&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jul 2013 11:23:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/file-geodatabase-api-questions/read-esri-filegeodatabase-sql-filter-on-date-field/m-p/546819#M884</guid>
      <dc:creator>RalfWessels</dc:creator>
      <dc:date>2013-07-17T11:23:57Z</dc:date>
    </item>
    <item>
      <title>Re: read ESRI FileGeoDataBase / sql filter on date field</title>
      <link>https://community.esri.com/t5/file-geodatabase-api-questions/read-esri-filegeodatabase-sql-filter-on-date-field/m-p/546820#M885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This "date_field &amp;lt; date '2013-07-09 17:34:49' " should work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp; EnumRows attrQueryRows;
&amp;nbsp; if ((hr = table.Search(L"*", L"UP_DATE &amp;gt; date '2007-05-23 11:13:59'", true, attrQueryRows)) != S_OK)
&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp; wcout &amp;lt;&amp;lt; "An error occurred while performing the attribute query." &amp;lt;&amp;lt; endl;
&amp;nbsp;&amp;nbsp;&amp;nbsp; ErrorInfo::GetErrorDescription(hr, errorText);
&amp;nbsp;&amp;nbsp;&amp;nbsp; wcout &amp;lt;&amp;lt; errorText &amp;lt;&amp;lt; "(" &amp;lt;&amp;lt; hr &amp;lt;&amp;lt; ")." &amp;lt;&amp;lt; endl;
&amp;nbsp;&amp;nbsp;&amp;nbsp; return -1;
&amp;nbsp; }&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 23:39:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/file-geodatabase-api-questions/read-esri-filegeodatabase-sql-filter-on-date-field/m-p/546820#M885</guid>
      <dc:creator>LanceShipman</dc:creator>
      <dc:date>2021-12-11T23:39:44Z</dc:date>
    </item>
    <item>
      <title>Re: read ESRI FileGeoDataBase / sql filter on date field</title>
      <link>https://community.esri.com/t5/file-geodatabase-api-questions/read-esri-filegeodatabase-sql-filter-on-date-field/m-p/546821#M886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;hi Lance,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt;This "date_field &amp;lt; date '2013-07-09 17:34:49' " should work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Great, it works - thanx a lot for that quick answer&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;best greetings from Berlin&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ralf Wessels&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jul 2013 17:30:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/file-geodatabase-api-questions/read-esri-filegeodatabase-sql-filter-on-date-field/m-p/546821#M886</guid>
      <dc:creator>RalfWessels</dc:creator>
      <dc:date>2013-07-17T17:30:50Z</dc:date>
    </item>
  </channel>
</rss>

