<?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: select by attributes with wildcard, date field in Mapping Questions</title>
    <link>https://community.esri.com/t5/mapping-questions/select-by-attributes-with-wildcard-date-field/m-p/432184#M4682</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;As far as I know, there is no way to use LIKE on a date field in ArcGIS (correct me if I'm wrong). You can use BETWEEN though. This example will return all dates in 2005 (actually you probably need to adjust the final time to get records from the last day). This works for me, you may have to adjust the date format.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;"DateField" BETWEEN date '2005-01-01 00:00:00' and date '2005-12-31 00:00:00'&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Jul 2011 16:31:07 GMT</pubDate>
    <dc:creator>DarrenWiens2</dc:creator>
    <dc:date>2011-07-13T16:31:07Z</dc:date>
    <item>
      <title>select by attributes with wildcard, date field</title>
      <link>https://community.esri.com/t5/mapping-questions/select-by-attributes-with-wildcard-date-field/m-p/432183#M4681</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 have a date field that contains hundreds of unique values.&amp;nbsp; I need to select by year.&amp;nbsp; However my sql query: "Fieldname" = date '2009%' is invalid.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, for whatever reason my attributes are displayed in mm/dd/yyyy format, while in the select by attribute unique field box they are displayed as date 'yyyy-mm-dd'&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've tried a bunch of different sql combinations and nothing works.&amp;nbsp; Please help!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks much,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;peace&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jul 2011 15:39:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/select-by-attributes-with-wildcard-date-field/m-p/432183#M4681</guid>
      <dc:creator>MikeWissner</dc:creator>
      <dc:date>2011-07-13T15:39:40Z</dc:date>
    </item>
    <item>
      <title>Re: select by attributes with wildcard, date field</title>
      <link>https://community.esri.com/t5/mapping-questions/select-by-attributes-with-wildcard-date-field/m-p/432184#M4682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;As far as I know, there is no way to use LIKE on a date field in ArcGIS (correct me if I'm wrong). You can use BETWEEN though. This example will return all dates in 2005 (actually you probably need to adjust the final time to get records from the last day). This works for me, you may have to adjust the date format.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;"DateField" BETWEEN date '2005-01-01 00:00:00' and date '2005-12-31 00:00:00'&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jul 2011 16:31:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/select-by-attributes-with-wildcard-date-field/m-p/432184#M4682</guid>
      <dc:creator>DarrenWiens2</dc:creator>
      <dc:date>2011-07-13T16:31:07Z</dc:date>
    </item>
    <item>
      <title>Re: select by attributes with wildcard, date field</title>
      <link>https://community.esri.com/t5/mapping-questions/select-by-attributes-with-wildcard-date-field/m-p/432185#M4683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks dkwiens, that was a great idea.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, I still couldn't get it to work.&amp;nbsp; Any other suggestions?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jul 2011 18:23:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/select-by-attributes-with-wildcard-date-field/m-p/432185#M4683</guid>
      <dc:creator>MikeWissner</dc:creator>
      <dc:date>2011-07-13T18:23:17Z</dc:date>
    </item>
    <item>
      <title>Re: select by attributes with wildcard, date field</title>
      <link>https://community.esri.com/t5/mapping-questions/select-by-attributes-with-wildcard-date-field/m-p/432186#M4684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It works for me, so my suggestion is to post your SQL statement and a subset of your data.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jul 2011 16:28:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/select-by-attributes-with-wildcard-date-field/m-p/432186#M4684</guid>
      <dc:creator>DarrenWiens2</dc:creator>
      <dc:date>2011-07-14T16:28:34Z</dc:date>
    </item>
    <item>
      <title>Re: select by attributes with wildcard, date field</title>
      <link>https://community.esri.com/t5/mapping-questions/select-by-attributes-with-wildcard-date-field/m-p/432187#M4685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you, works great. but what i need to do is to get the features that is not being visited between the current_date and a certain period of it, like for example : " where "features" between current_date&amp;nbsp; and 10 days ago ".. any suggestions ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Mar 2016 10:15:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/select-by-attributes-with-wildcard-date-field/m-p/432187#M4685</guid>
      <dc:creator>IbrahimMohammed_Ahmed</dc:creator>
      <dc:date>2016-03-24T10:15:22Z</dc:date>
    </item>
    <item>
      <title>Re: select by attributes with wildcard, date field</title>
      <link>https://community.esri.com/t5/mapping-questions/select-by-attributes-with-wildcard-date-field/m-p/432188#M4686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;posting a new question in a 5 year old thread probably isn't going to pique much interest unless you provide the syntax etc as was suggested in one of the responses&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Mar 2016 11:40:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/select-by-attributes-with-wildcard-date-field/m-p/432188#M4686</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2016-03-24T11:40:25Z</dc:date>
    </item>
  </channel>
</rss>

