<?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: Change feature color based on date in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/change-feature-color-based-on-date/m-p/122990#M5178</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, you can do this via a custom Expression in Symbology.&lt;/P&gt;&lt;P&gt;In the webmap, open symbology for the layer, in the attribute to symbolize, scroll all the way to the bottom of the list and create a custom expression.&amp;nbsp; The custom expression could be something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Symbolize by Expired&lt;/P&gt;&lt;P&gt;var age&lt;BR /&gt;var Expired&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;// Difference between feature attribute and today&lt;BR /&gt;age = DateDiff(Now(),$feature.ExpirationDate,'days')&lt;/P&gt;&lt;P&gt;//Is it expired or not?&lt;BR /&gt;Expired = iif(age&amp;lt;0, 'Not Expired','Expired')&lt;/P&gt;&lt;P&gt;//Sybolize on this value&lt;/P&gt;&lt;P&gt;return Expired&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That should get you close to a solution.&lt;/P&gt;&lt;P&gt;Jay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Oct 2020 17:42:47 GMT</pubDate>
    <dc:creator>JayJohnsonWashoeCounty</dc:creator>
    <dc:date>2020-10-01T17:42:47Z</dc:date>
    <item>
      <title>Change feature color based on date</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/change-feature-color-based-on-date/m-p/122989#M5177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Specifically I am trying to change the color of my feature polygon based on its relation to today's date (if possible). The scenario is this:&amp;nbsp;I am trying to track lease expirations for numerous properties. If a date from the attribute table (Lease Expiration date) is equal to or before today's date (the lease is expired) I would like the polygon color to change to black from red, green or whatever I decide it to be.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Oct 2020 17:08:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/change-feature-color-based-on-date/m-p/122989#M5177</guid>
      <dc:creator>QuantaGIS</dc:creator>
      <dc:date>2020-10-01T17:08:19Z</dc:date>
    </item>
    <item>
      <title>Re: Change feature color based on date</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/change-feature-color-based-on-date/m-p/122990#M5178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, you can do this via a custom Expression in Symbology.&lt;/P&gt;&lt;P&gt;In the webmap, open symbology for the layer, in the attribute to symbolize, scroll all the way to the bottom of the list and create a custom expression.&amp;nbsp; The custom expression could be something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Symbolize by Expired&lt;/P&gt;&lt;P&gt;var age&lt;BR /&gt;var Expired&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;// Difference between feature attribute and today&lt;BR /&gt;age = DateDiff(Now(),$feature.ExpirationDate,'days')&lt;/P&gt;&lt;P&gt;//Is it expired or not?&lt;BR /&gt;Expired = iif(age&amp;lt;0, 'Not Expired','Expired')&lt;/P&gt;&lt;P&gt;//Sybolize on this value&lt;/P&gt;&lt;P&gt;return Expired&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That should get you close to a solution.&lt;/P&gt;&lt;P&gt;Jay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Oct 2020 17:42:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/change-feature-color-based-on-date/m-p/122990#M5178</guid>
      <dc:creator>JayJohnsonWashoeCounty</dc:creator>
      <dc:date>2020-10-01T17:42:47Z</dc:date>
    </item>
  </channel>
</rss>

