<?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: Selecting all records within a given date range mm/dd/yyyy in Spatial Data Science Questions</title>
    <link>https://community.esri.com/t5/spatial-data-science-questions/selecting-all-records-within-a-given-date-range-mm/m-p/594774#M1336</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a similar issue but what i wish to do is select records where date is greater than or equal to one specific date .&lt;/P&gt;&lt;P&gt;When I build a query the query the column tool converts the date to yyyy-mm-dd hh:mm:ss&amp;nbsp;&lt;/P&gt;&lt;P&gt;e.g.Select OPDATE &amp;gt;= date '2007-03-25 00:00:00' the thing is it drops a bunch of records that it should pick up greater than this date.&lt;/P&gt;&lt;P&gt;I wonder if it has anything to do with American vs European date formats or&amp;nbsp; how the record was keyed into the database. As all dates normally look like 25/03/2007 when viewed in the table&amp;nbsp; i.e. dd/mm/yyyy as per:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/461268_pastedImage_194.png" /&gt;&lt;/P&gt;&lt;P&gt;So how do I ensure I get the correct records without missing any ,if you can imagine I have over 15000 records spanning 13 years I don't want to write a query for each and every potential date value).&lt;/P&gt;&lt;P&gt;eg OPDATE IN (&lt;SPAN&gt;date '2007-03-25 00:00:00' ,date '2007-03-26 00:00:00' ,date '2007-03-2700:00:00' ,date '2007-03-28 00:00:00' ,date '2007-03-29 00:00:00' .....) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;( which equates to 4749&amp;nbsp;potential date results&amp;nbsp; or 365.25 days a year for 13 years )&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Oct 2019 01:56:52 GMT</pubDate>
    <dc:creator>MathieuBoonen</dc:creator>
    <dc:date>2019-10-07T01:56:52Z</dc:date>
    <item>
      <title>Selecting all records within a given date range mm/dd/yyyy</title>
      <link>https://community.esri.com/t5/spatial-data-science-questions/selecting-all-records-within-a-given-date-range-mm/m-p/594768#M1330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hello all,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a shapefile with a column of dates that were all manually entered in an editing session. Is it possible to create a "Select by Attributes" query that will select all records within a given date range such as from January 1st 2014 - May 31st 2014 (I want to be specific down to the day)? If it helps I am trying to get all of the records that occur within each business quarter.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried a couple of ways to build a query that would do this task, but Arc seems to be real finnicky about how you query attributes that are in a date format.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyone know of a workaround to this problem, or know of a forum where this issue is discussed?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Aug 2014 21:35:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-data-science-questions/selecting-all-records-within-a-given-date-range-mm/m-p/594768#M1330</guid>
      <dc:creator>AlecKelly</dc:creator>
      <dc:date>2014-08-04T21:35:39Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting all records within a given date range mm/dd/yyyy</title>
      <link>https://community.esri.com/t5/spatial-data-science-questions/selecting-all-records-within-a-given-date-range-mm/m-p/594769#M1331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alec I tried&lt;/P&gt;&lt;P&gt;GPSDATE &amp;gt;= '2009-06-03 00:00:00' AND GPSDATE &amp;lt;= '2009-06-22 00:00:00'&lt;/P&gt;&lt;P&gt;For my feature this selected only features with a GPS Date of 6/3 to 6/22 and no others.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Aug 2014 21:40:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-data-science-questions/selecting-all-records-within-a-given-date-range-mm/m-p/594769#M1331</guid>
      <dc:creator>JoshWhite</dc:creator>
      <dc:date>2014-08-04T21:40:33Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting all records within a given date range mm/dd/yyyy</title>
      <link>https://community.esri.com/t5/spatial-data-science-questions/selecting-all-records-within-a-given-date-range-mm/m-p/594770#M1332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do I need to establish a time somehow or is it included already within the Date data type? This looks great though, exactly what I was looking for! Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Aug 2014 00:38:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-data-science-questions/selecting-all-records-within-a-given-date-range-mm/m-p/594770#M1332</guid>
      <dc:creator>AlecKelly</dc:creator>
      <dc:date>2014-08-05T00:38:40Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting all records within a given date range mm/dd/yyyy</title>
      <link>https://community.esri.com/t5/spatial-data-science-questions/selecting-all-records-within-a-given-date-range-mm/m-p/594771#M1333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mine didn't have times, I just selected those two dates from the list that is generated when you click Get Unique Values, it automatically put it in the form of 2009-06-03 00:00:00.&amp;nbsp; So I guess the answer to your question is that yes, apparently the time is already included with the date type.&amp;nbsp; The field is just displayed like this: 6/03/2009.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Aug 2014 13:13:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-data-science-questions/selecting-all-records-within-a-given-date-range-mm/m-p/594771#M1333</guid>
      <dc:creator>JoshWhite</dc:creator>
      <dc:date>2014-08-05T13:13:48Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting all records within a given date range mm/dd/yyyy</title>
      <link>https://community.esri.com/t5/spatial-data-science-questions/selecting-all-records-within-a-given-date-range-mm/m-p/594772#M1334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yep, I just tried it like you said and it worked! I didn't realize Arc reformatted the date for you like that to make it simpler, I was trying to work in a bunch of conditional statements to sift through the dates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for all of the help Josh!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Aug 2014 13:17:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-data-science-questions/selecting-all-records-within-a-given-date-range-mm/m-p/594772#M1334</guid>
      <dc:creator>AlecKelly</dc:creator>
      <dc:date>2014-08-05T13:17:28Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting all records within a given date range mm/dd/yyyy</title>
      <link>https://community.esri.com/t5/spatial-data-science-questions/selecting-all-records-within-a-given-date-range-mm/m-p/594773#M1335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah I use that unique values button all the time for that reason, just to make sure that I am formatting the Query statement correctly.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Aug 2014 13:26:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-data-science-questions/selecting-all-records-within-a-given-date-range-mm/m-p/594773#M1335</guid>
      <dc:creator>JoshWhite</dc:creator>
      <dc:date>2014-08-05T13:26:22Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting all records within a given date range mm/dd/yyyy</title>
      <link>https://community.esri.com/t5/spatial-data-science-questions/selecting-all-records-within-a-given-date-range-mm/m-p/594774#M1336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a similar issue but what i wish to do is select records where date is greater than or equal to one specific date .&lt;/P&gt;&lt;P&gt;When I build a query the query the column tool converts the date to yyyy-mm-dd hh:mm:ss&amp;nbsp;&lt;/P&gt;&lt;P&gt;e.g.Select OPDATE &amp;gt;= date '2007-03-25 00:00:00' the thing is it drops a bunch of records that it should pick up greater than this date.&lt;/P&gt;&lt;P&gt;I wonder if it has anything to do with American vs European date formats or&amp;nbsp; how the record was keyed into the database. As all dates normally look like 25/03/2007 when viewed in the table&amp;nbsp; i.e. dd/mm/yyyy as per:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/461268_pastedImage_194.png" /&gt;&lt;/P&gt;&lt;P&gt;So how do I ensure I get the correct records without missing any ,if you can imagine I have over 15000 records spanning 13 years I don't want to write a query for each and every potential date value).&lt;/P&gt;&lt;P&gt;eg OPDATE IN (&lt;SPAN&gt;date '2007-03-25 00:00:00' ,date '2007-03-26 00:00:00' ,date '2007-03-2700:00:00' ,date '2007-03-28 00:00:00' ,date '2007-03-29 00:00:00' .....) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;( which equates to 4749&amp;nbsp;potential date results&amp;nbsp; or 365.25 days a year for 13 years )&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Oct 2019 01:56:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-data-science-questions/selecting-all-records-within-a-given-date-range-mm/m-p/594774#M1336</guid>
      <dc:creator>MathieuBoonen</dc:creator>
      <dc:date>2019-10-07T01:56:52Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting all records within a given date range mm/dd/yyyy</title>
      <link>https://community.esri.com/t5/spatial-data-science-questions/selecting-all-records-within-a-given-date-range-mm/m-p/594775#M1337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is your field in DATE format or TEXT (STRING)?&amp;nbsp; The example I was using involves dates in the DATE format.&amp;nbsp; I've found the only way for a text field to properly work as a date for selection is to format it like this 20191007 (YYYYMMDD) if it represented today's date.&amp;nbsp; It might work with YYYYDDMM&amp;nbsp; or 20190710 to more closely match your format but I'm not sure).&amp;nbsp; If it is a DATE field, you'll likely want to use unique values and ensure your date format matches how you enter it (hope that made sense).&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Oct 2019 14:24:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-data-science-questions/selecting-all-records-within-a-given-date-range-mm/m-p/594775#M1337</guid>
      <dc:creator>JoshWhite</dc:creator>
      <dc:date>2019-10-07T14:24:47Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting all records within a given date range mm/dd/yyyy</title>
      <link>https://community.esri.com/t5/spatial-data-science-questions/selecting-all-records-within-a-given-date-range-mm/m-p/594776#M1338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The field is a date format , so unique values it is. Maybe I will create 3 fields day month and year as integer values, then calculate out each using text strings left and right functions etc and at least I can group them easily by month and year and query the day as a numeric value. I am surprised I have not seen this issue earlier as I have been using Arc products since 1991....Goes to show you are always learning when it comes to GIS....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Oct 2019 19:33:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-data-science-questions/selecting-all-records-within-a-given-date-range-mm/m-p/594776#M1338</guid>
      <dc:creator>MathieuBoonen</dc:creator>
      <dc:date>2019-10-07T19:33:27Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting all records within a given date range mm/dd/yyyy</title>
      <link>https://community.esri.com/t5/spatial-data-science-questions/selecting-all-records-within-a-given-date-range-mm/m-p/1268927#M1863</link>
      <description>&lt;P&gt;Hey I have date field. how to select date from 1 month past from today. so tomorrow would be 1 month past from tomorrow in ArcGIS pro attribute table?&lt;/P&gt;&lt;P&gt;please and thank you,&lt;/P&gt;</description>
      <pubDate>Fri, 17 Mar 2023 12:59:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-data-science-questions/selecting-all-records-within-a-given-date-range-mm/m-p/1268927#M1863</guid>
      <dc:creator>KrisKarki</dc:creator>
      <dc:date>2023-03-17T12:59:52Z</dc:date>
    </item>
  </channel>
</rss>

