<?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 How to select the rows based on the the date field which are in last 7 days before today's date?  in ArcGIS Pro: Partner Solutions Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-partner-solutions-questions/how-to-select-the-rows-based-on-the-the-date-field/m-p/765377#M4</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the Select by attribute tool to select the records. I have a date field name T: (A 1305) Site Walk-Finish so I need to select only those records which has the date (&lt;SPAN&gt;T: (A 1305)&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Site Walk-Finish) which are in last 7 days of today's date. I am not sure how to write the expression.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;IMG __jive_id="364508" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/364508_pastedImage_1.png" style="width: auto; height: auto;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Jul 2017 19:54:36 GMT</pubDate>
    <dc:creator>ManjariGoyal</dc:creator>
    <dc:date>2017-07-26T19:54:36Z</dc:date>
    <item>
      <title>How to select the rows based on the the date field which are in last 7 days before today's date?</title>
      <link>https://community.esri.com/t5/arcgis-pro-partner-solutions-questions/how-to-select-the-rows-based-on-the-the-date-field/m-p/765377#M4</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the Select by attribute tool to select the records. I have a date field name T: (A 1305) Site Walk-Finish so I need to select only those records which has the date (&lt;SPAN&gt;T: (A 1305)&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Site Walk-Finish) which are in last 7 days of today's date. I am not sure how to write the expression.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;IMG __jive_id="364508" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/364508_pastedImage_1.png" style="width: auto; height: auto;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jul 2017 19:54:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-partner-solutions-questions/how-to-select-the-rows-based-on-the-the-date-field/m-p/765377#M4</guid>
      <dc:creator>ManjariGoyal</dc:creator>
      <dc:date>2017-07-26T19:54:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to select the rows based on the the date field which are in last 7 days before today's date?</title>
      <link>https://community.esri.com/t5/arcgis-pro-partner-solutions-questions/how-to-select-the-rows-based-on-the-the-date-field/m-p/765378#M5</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am sure there will be easier methods.&lt;/P&gt;&lt;P&gt;You can do the following steps.&lt;/P&gt;&lt;P&gt;1. Add a New Field in the attribute table with Date datatype.&lt;/P&gt;&lt;P&gt;Using Field Calculator (Python Parser), write the following expression for current date&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;EM&gt;datetime.datetime.now( )&lt;/EM&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. In Select by Attribute, write the following expression&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;EM&gt;Date_Orig &amp;gt; Date_Now - 7&lt;/EM&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;where &lt;EM&gt;Date_Orig&lt;/EM&gt; is the original Date Field&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Date_Now&lt;/EM&gt; is the Current Date Field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;N.B.: I executed the above expressions in ArcMap, as I am not having ArcGIS Pro at the moment.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jul 2017 20:58:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-partner-solutions-questions/how-to-select-the-rows-based-on-the-the-date-field/m-p/765378#M5</guid>
      <dc:creator>JayantaPoddar</dc:creator>
      <dc:date>2017-07-26T20:58:52Z</dc:date>
    </item>
  </channel>
</rss>

