<?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: Query on a Date Field with LIKE in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/query-on-a-date-field-with-like/m-p/615850#M34772</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Joe,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You could use the following expression:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;[DATE_FIELD] &amp;gt; #10-06-2011 00:00:00# AND [DATE_FIELD] &amp;lt; #10-06-2011 23:59:59#&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This will select all the records with a date of 10/6/2011.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 03 Dec 2012 18:55:04 GMT</pubDate>
    <dc:creator>JakeSkinner</dc:creator>
    <dc:date>2012-12-03T18:55:04Z</dc:date>
    <item>
      <title>Query on a Date Field with LIKE</title>
      <link>https://community.esri.com/t5/data-management-questions/query-on-a-date-field-with-like/m-p/615849#M34771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've exported a table from a SQL Server database into a personal geodatabase.&amp;nbsp; I need to query by a data field and can't quite figure out what I need to do when using a 'like' statement.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The date field in question looks like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;10/6/2011 7:08:19 PM&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There are thousands of records that have 10/6/2011 as the date.&amp;nbsp; So I tried:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[date_field] like #10/6/2011 *# etc, but I'm told the syntax is wrong.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can use the equals statement like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[date_field] = #10/6/2011 7:08:19 PM#&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and it's good to go.&amp;nbsp; But of course that's just one record...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any suggestions are appreciated.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Dec 2012 16:55:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/query-on-a-date-field-with-like/m-p/615849#M34771</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2012-12-03T16:55:45Z</dc:date>
    </item>
    <item>
      <title>Re: Query on a Date Field with LIKE</title>
      <link>https://community.esri.com/t5/data-management-questions/query-on-a-date-field-with-like/m-p/615850#M34772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Joe,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You could use the following expression:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;[DATE_FIELD] &amp;gt; #10-06-2011 00:00:00# AND [DATE_FIELD] &amp;lt; #10-06-2011 23:59:59#&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This will select all the records with a date of 10/6/2011.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Dec 2012 18:55:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/query-on-a-date-field-with-like/m-p/615850#M34772</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2012-12-03T18:55:04Z</dc:date>
    </item>
    <item>
      <title>Re: Query on a Date Field with LIKE</title>
      <link>https://community.esri.com/t5/data-management-questions/query-on-a-date-field-with-like/m-p/615851#M34773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Jake; I did something similar and it worked out....&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Dec 2012 19:49:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/query-on-a-date-field-with-like/m-p/615851#M34773</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2012-12-03T19:49:26Z</dc:date>
    </item>
  </channel>
</rss>

