<?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 Arcade expression for date equals today or earlier in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-for-date-equals-today-or-earlier/m-p/527732#M26652</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How can I write an arcade expression that would change the symbology of a webmap based on whether or not a date is equal to or before today's date?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Jul 2020 18:37:27 GMT</pubDate>
    <dc:creator>LeifJohnson3</dc:creator>
    <dc:date>2020-07-27T18:37:27Z</dc:date>
    <item>
      <title>Arcade expression for date equals today or earlier</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-for-date-equals-today-or-earlier/m-p/527732#M26652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How can I write an arcade expression that would change the symbology of a webmap based on whether or not a date is equal to or before today's date?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jul 2020 18:37:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-for-date-equals-today-or-earlier/m-p/527732#M26652</guid>
      <dc:creator>LeifJohnson3</dc:creator>
      <dc:date>2020-07-27T18:37:27Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade expression for date equals today or earlier</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-for-date-equals-today-or-earlier/m-p/527733#M26653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, you can do something like this:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;var event_time = $feature.eventTime;&lt;/P&gt;&lt;P&gt;var today_date = Today();&lt;BR /&gt;var diff = DateDiff(today_date, event_time, 'days');&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;if(diff &amp;gt; 0){&lt;BR /&gt; return 'before today';&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;else(diff &amp;lt;0)&lt;BR /&gt; return 'today';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;IMG alt="" class="jive-emoji image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/501413_earthquakes.PNG" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-emoji jive-image image-2 j-img-original" src="https://community.esri.com/legacyfs/online/501414_today.PNG" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jul 2020 18:58:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-for-date-equals-today-or-earlier/m-p/527733#M26653</guid>
      <dc:creator>DonShawEsri</dc:creator>
      <dc:date>2020-07-27T18:58:09Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade expression for date equals today or earlier</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-for-date-equals-today-or-earlier/m-p/527734#M26654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much &lt;A href="https://community.esri.com/migrated-users/333942"&gt;Donald Shaw&lt;/A&gt;.&amp;nbsp;This is extremely helpful!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jul 2020 20:26:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-for-date-equals-today-or-earlier/m-p/527734#M26654</guid>
      <dc:creator>LeifJohnson3</dc:creator>
      <dc:date>2020-07-27T20:26:00Z</dc:date>
    </item>
  </channel>
</rss>

