<?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: Arcade Expression: Yesterday's Date in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-yesterday-s-date/m-p/178548#M8765</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can use DateDiff() as well.&lt;/P&gt;&lt;P&gt;i think following expression should return features older than yesterday.&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;DateDiff(Today(), $feature.EditDate, 'days') &amp;gt; 1&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Nov 2018 16:40:01 GMT</pubDate>
    <dc:creator>TanuHoque</dc:creator>
    <dc:date>2018-11-06T16:40:01Z</dc:date>
    <item>
      <title>Arcade Expression: Yesterday's Date</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-yesterday-s-date/m-p/178547#M8764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am currently attempting to create an expression that will stylize points based on date. The aim is to turn all points that were created either yesterday or today one color and then all other dates a different color. I have successfully created an&amp;nbsp; expression that will accomplish this for today's date, but cannot figure out how to also include yesterday's date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Current expression;&lt;/P&gt;&lt;P&gt;Iif( Day(Now()) == Day($feature.EditDate), "True", "False")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As there is not a function for "Yesterday" I assume one would need to use the DateAdd Function?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Nov 2018 15:45:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-yesterday-s-date/m-p/178547#M8764</guid>
      <dc:creator>PointIDS</dc:creator>
      <dc:date>2018-11-06T15:45:20Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Expression: Yesterday's Date</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-yesterday-s-date/m-p/178548#M8765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can use DateDiff() as well.&lt;/P&gt;&lt;P&gt;i think following expression should return features older than yesterday.&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;DateDiff(Today(), $feature.EditDate, 'days') &amp;gt; 1&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Nov 2018 16:40:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-expression-yesterday-s-date/m-p/178548#M8765</guid>
      <dc:creator>TanuHoque</dc:creator>
      <dc:date>2018-11-06T16:40:01Z</dc:date>
    </item>
  </channel>
</rss>

