<?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: Using where clause to query date ranges in ArcPy in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/using-where-clause-to-query-date-ranges-in-arcpy/m-p/666904#M51795</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In addition to what &lt;A href="https://community.esri.com/migrated-users/3051"&gt;Vince Angelo&lt;/A&gt;​ wrote, below an example of an expression for data in an Enterprise GDB (Oracle) and the same data in a File GDB:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;EGDB&lt;/STRONG&gt; (data resides in Oracle):&lt;/P&gt;&lt;P&gt;YourDateField BETWEEN &lt;EM&gt;timestamp&lt;/EM&gt; '2014-02-16 16:53:25' AND &lt;EM&gt;timestamp&lt;/EM&gt; '2014-02-17 18:53:25'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FGDB&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;YourDateField BETWEEN &lt;EM&gt;date&lt;/EM&gt; '2014-02-16 16:53:25' AND &lt;EM&gt;date&lt;/EM&gt; '2014-02-17 18:53:25'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The whereclause parameter would become:&lt;/P&gt;&lt;P&gt;where_clause="YourDateField BETWEEN &lt;EM&gt;timestamp&lt;/EM&gt; '2014-02-16 16:53:25' AND &lt;EM&gt;timestamp&lt;/EM&gt; '2014-02-17 18:53:25'"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;More on this in the help topic: "&lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#//00s500000033000000"&gt;SQL reference for query expressions used in ArcGIS&lt;/A&gt;"&lt;/P&gt;&lt;P&gt;&lt;EM&gt;scroll down to Date-time syntax for ArcSDE geodatabases&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Apr 2015 15:39:31 GMT</pubDate>
    <dc:creator>XanderBakker</dc:creator>
    <dc:date>2015-04-06T15:39:31Z</dc:date>
    <item>
      <title>Using where clause to query date ranges in ArcPy</title>
      <link>https://community.esri.com/t5/python-questions/using-where-clause-to-query-date-ranges-in-arcpy/m-p/666900#M51791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(248, 248, 248, 0.6);"&gt;I would like to query a feature classes date range. For instance, if there is data within a 2 day range then I would like to print true or do something else. I thought arcpy.Exist would do the job, but I am missing something here. I guess my arcpy.Exist is only seeing if the variable exists, how would I check to see if the actual where clause is True for my feature layer?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(248, 248, 248, 0.6);"&gt;&lt;CODE style="font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; color: #222222;"&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;query &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #145680;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; arcpy&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #145680;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;MakeFeatureLayer_management&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #145680;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;fc&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #145680;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="str" style="color: #800000;"&gt;"QueryLayer"&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #145680;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="str" style="color: #800000;"&gt;"""Date BETWEEN '2014-02-16 16:53:25' AND '2014-02-17 18:53:25'"""&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #145680;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #8a4a0b;"&gt;try&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #145680;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;&lt;BR /&gt;&amp;nbsp; query&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #8a4a0b;"&gt;finally&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #145680;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #8a4a0b;"&gt;if&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; arcpy&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #145680;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;Exists&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #145680;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;query&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #145680;"&gt;):&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #8a4a0b;"&gt;print&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="str" style="color: #800000;"&gt;"true"&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #8a4a0b;"&gt;else&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #145680;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #8a4a0b;"&gt;print&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="str" style="color: #800000;"&gt;"no data"&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Apr 2015 14:10:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/using-where-clause-to-query-date-ranges-in-arcpy/m-p/666900#M51791</guid>
      <dc:creator>GeoffreyWest1</dc:creator>
      <dc:date>2015-04-06T14:10:10Z</dc:date>
    </item>
    <item>
      <title>Re: Using where clause to query date ranges in ArcPy</title>
      <link>https://community.esri.com/t5/python-questions/using-where-clause-to-query-date-ranges-in-arcpy/m-p/666901#M51792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My guess is your sql is failing.&amp;nbsp; Simplify the sql to something you know works to see if .Exists is true.&amp;nbsp; Make it super simple like "OBJECTID = 1" or something like that, if it prints "true" then you know your sql needs to be fixed.&amp;nbsp; You should get an ExecuteError 000230 if it fails to apply the selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise, I get a "true" print statement with your code above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I'm not completely sure your approach is doing what you want.&amp;nbsp; Can you clarify exactly what you want to do?&amp;nbsp; Because I can't fully understand.&amp;nbsp; Maybe you want to count?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;arcpy.GetCount_management(query)&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Apr 2015 14:30:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/using-where-clause-to-query-date-ranges-in-arcpy/m-p/666901#M51792</guid>
      <dc:creator>JamesCrandall</dc:creator>
      <dc:date>2015-04-06T14:30:55Z</dc:date>
    </item>
    <item>
      <title>Re: Using where clause to query date ranges in ArcPy</title>
      <link>https://community.esri.com/t5/python-questions/using-where-clause-to-query-date-ranges-in-arcpy/m-p/666902#M51793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Surely the result will exist, even if it was empty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What you really want is the &lt;A href="http://resources.arcgis.com/en/help/main/10.2/0017/0017000000n7000000.htm"&gt;count of the features in this new layer&lt;/A&gt;, but instead of creating new objects with a query, I'd think you'd be better off accessing the selection environment, to obtain the number of features selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should also know that the syntax of temporal queries differs by data source (shapefile different than FGDB different than Oracle enterprise GDB different than SQL-Server EGDB, different than any of the dozens of other data sources), so your question should include the data source, so that syntax could be verified.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- V&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Apr 2015 14:40:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/using-where-clause-to-query-date-ranges-in-arcpy/m-p/666902#M51793</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2015-04-06T14:40:01Z</dc:date>
    </item>
    <item>
      <title>Re: Using where clause to query date ranges in ArcPy</title>
      <link>https://community.esri.com/t5/python-questions/using-where-clause-to-query-date-ranges-in-arcpy/m-p/666903#M51794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My goal is to search for the date range of my features.&amp;nbsp; If the dates fall within my specified time period then do something, else do something else.&amp;nbsp; A search cursor worked brilliantly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;cursor = arcpy.SearchCursor(fc,"""Date BETWEEN '2014-02-16 16:53:25' AND&amp;nbsp; '2015-02-17 16:53:25'""" )
for row in cursor:
 print(row.getValue("Date"))




if row.getValue("Date") &amp;lt; datetime.datetime.now():
&amp;nbsp;&amp;nbsp;&amp;nbsp; print "true"
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 04:11:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/using-where-clause-to-query-date-ranges-in-arcpy/m-p/666903#M51794</guid>
      <dc:creator>GeoffreyWest1</dc:creator>
      <dc:date>2021-12-12T04:11:23Z</dc:date>
    </item>
    <item>
      <title>Re: Using where clause to query date ranges in ArcPy</title>
      <link>https://community.esri.com/t5/python-questions/using-where-clause-to-query-date-ranges-in-arcpy/m-p/666904#M51795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In addition to what &lt;A href="https://community.esri.com/migrated-users/3051"&gt;Vince Angelo&lt;/A&gt;​ wrote, below an example of an expression for data in an Enterprise GDB (Oracle) and the same data in a File GDB:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;EGDB&lt;/STRONG&gt; (data resides in Oracle):&lt;/P&gt;&lt;P&gt;YourDateField BETWEEN &lt;EM&gt;timestamp&lt;/EM&gt; '2014-02-16 16:53:25' AND &lt;EM&gt;timestamp&lt;/EM&gt; '2014-02-17 18:53:25'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FGDB&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;YourDateField BETWEEN &lt;EM&gt;date&lt;/EM&gt; '2014-02-16 16:53:25' AND &lt;EM&gt;date&lt;/EM&gt; '2014-02-17 18:53:25'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The whereclause parameter would become:&lt;/P&gt;&lt;P&gt;where_clause="YourDateField BETWEEN &lt;EM&gt;timestamp&lt;/EM&gt; '2014-02-16 16:53:25' AND &lt;EM&gt;timestamp&lt;/EM&gt; '2014-02-17 18:53:25'"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;More on this in the help topic: "&lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#//00s500000033000000"&gt;SQL reference for query expressions used in ArcGIS&lt;/A&gt;"&lt;/P&gt;&lt;P&gt;&lt;EM&gt;scroll down to Date-time syntax for ArcSDE geodatabases&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Apr 2015 15:39:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/using-where-clause-to-query-date-ranges-in-arcpy/m-p/666904#M51795</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2015-04-06T15:39:31Z</dc:date>
    </item>
    <item>
      <title>Re: Using where clause to query date ranges in ArcPy</title>
      <link>https://community.esri.com/t5/python-questions/using-where-clause-to-query-date-ranges-in-arcpy/m-p/666905#M51796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;My goal is to search for the date range of my features&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Doesn't the sql in your MakeFeatureLayer answer this already?&amp;nbsp; I mean, you are asking to make a feature layer with the features that have Date attribute values between the 2 dates you specify.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Also, do you have a field named "Date"?&amp;nbsp; If so, you might want to consider changing it to something that isn't a reserved word.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Apr 2015 15:46:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/using-where-clause-to-query-date-ranges-in-arcpy/m-p/666905#M51796</guid>
      <dc:creator>JamesCrandall</dc:creator>
      <dc:date>2015-04-06T15:46:05Z</dc:date>
    </item>
    <item>
      <title>Re: Using where clause to query date ranges in ArcPy</title>
      <link>https://community.esri.com/t5/python-questions/using-where-clause-to-query-date-ranges-in-arcpy/m-p/666906#M51797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah, but with a search cursor&amp;nbsp; I am able to search the data with the specified range instead of creating a feature layer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Apr 2015 15:53:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/using-where-clause-to-query-date-ranges-in-arcpy/m-p/666906#M51797</guid>
      <dc:creator>GeoffreyWest1</dc:creator>
      <dc:date>2015-04-06T15:53:11Z</dc:date>
    </item>
    <item>
      <title>Re: Using where clause to query date ranges in ArcPy</title>
      <link>https://community.esri.com/t5/python-questions/using-where-clause-to-query-date-ranges-in-arcpy/m-p/666907#M51798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm really lost as to what it is you want to do.&amp;nbsp; Here, let's try something simple.&amp;nbsp; Does this do what you want?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;query = arcpy.MakeFeatureLayer_management(fc, "QueryLayer", """Date BETWEEN '2014-02-16 16:53:25' AND '2014-02-17 18:53:25'""")
_count = arcpy.GetCount_management(query)
if _count &amp;gt; 0:
&amp;nbsp;&amp;nbsp;&amp;nbsp; print "Feature Layer has: " + str(_count) + " rows."
else:
&amp;nbsp;&amp;nbsp;&amp;nbsp; print "Feature Layer has zero rows"&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 04:11:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/using-where-clause-to-query-date-ranges-in-arcpy/m-p/666907#M51798</guid>
      <dc:creator>JamesCrandall</dc:creator>
      <dc:date>2021-12-12T04:11:26Z</dc:date>
    </item>
    <item>
      <title>Re: Using where clause to query date ranges in ArcPy</title>
      <link>https://community.esri.com/t5/python-questions/using-where-clause-to-query-date-ranges-in-arcpy/m-p/666908#M51799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess your example isn't the clearest I can think of (since you query dates in a range of the past and apply a condition if that date is less than the current datetime...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To throw in some code to check if a date is in a range (processing all features) could be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import arcpy
from datetime import datetime

fc = r"some reference to your fc"
frmt = '%Y-%m-%d %H:%M:%S'
fldDate = "Date"
start = datetime.strptime('2014-02-16 16:53:25', frmt)
end = datetime.strptime('2015-02-17 16:53:25', frmt)

cursor = arcpy.SearchCursor(fc)
for row in cursor:
&amp;nbsp;&amp;nbsp;&amp;nbsp; date = row.getValue(fldDate)
&amp;nbsp;&amp;nbsp;&amp;nbsp; if start &amp;lt;= date &amp;lt;= end:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print "in between: {0}".format(date)
&amp;nbsp;&amp;nbsp;&amp;nbsp; else:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print "NOT in between: {0}".format(date)
del cursor, row

# in case of ArcGIS 10.1 or higher
flds = (fldDate)
with arcpy.da.SearchCursor(fc, flds) as curs:
&amp;nbsp;&amp;nbsp;&amp;nbsp; for row in curs:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; date = row[0]
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if start &amp;lt;= date &amp;lt;= end:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print "in between: {0}".format(date)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print "NOT in between: {0}".format(date)
del curs, row&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 04:11:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/using-where-clause-to-query-date-ranges-in-arcpy/m-p/666908#M51799</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2021-12-12T04:11:28Z</dc:date>
    </item>
  </channel>
</rss>

