<?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: Compare Future Date with Current Date in Arcade in ArcGIS Online in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/compare-future-date-with-current-date-in-arcade-in/m-p/14481#M712</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Adam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An Arcade Expression like what follows.. should work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var vstat = ''&lt;BR /&gt;var time1 = Date($feature.FollowupDate)&lt;BR /&gt;if ($feature.Status == 'Complete'){&lt;BR /&gt; vstat = 'Complete'&lt;BR /&gt;}&lt;BR /&gt;else if ($feature.Status == 'Not Started'&amp;amp;&amp;amp; DateDiff(Now(), time1, 'hours')&amp;lt;=0){&lt;BR /&gt; vstat = 'Future Follow Up' &lt;BR /&gt;}&lt;BR /&gt;else if ($feature.Status == 'Not Started'&amp;amp;&amp;amp; DateDiff(Now(), time1, 'hours')&amp;gt;=0){&lt;BR /&gt; vstat = 'Follow up Now' &lt;BR /&gt;}&lt;BR /&gt;else if ($feature.Status == 'Not Complete'&amp;amp;&amp;amp; DateDiff(Now(), time1, 'hours')&amp;gt;=0){&lt;BR /&gt; vstat = 'Still working on it' &lt;BR /&gt;}&lt;BR /&gt;else{&lt;BR /&gt; vstat = 'uknown state'&lt;BR /&gt;}&lt;BR /&gt;return vstat;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, when I tried this in the Web MapViewer, the Symbol states would not generate?&lt;/P&gt;&lt;P&gt;My $feature.Status is a list (coded value) and I created a feature that met each of the desired states.&lt;/P&gt;&lt;P&gt;Was pretty sure this should work.. So, I tried it in ArcGIS Pro and...&amp;nbsp; it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="477788" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/477788_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I set the symbols for future work and "unknown" to transparent.&amp;nbsp; I also labeled all the points using a similar expression to "see" the future follow up features.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using ArcGIS Pro I shared this as a webmap.&amp;nbsp;&amp;nbsp;&lt;A class="link-titled" href="https://www.arcgis.com/home/webmap/viewer.html?webmap=ddbd64b2302347d299cd62bce48ac242" title="https://www.arcgis.com/home/webmap/viewer.html?webmap=ddbd64b2302347d299cd62bce48ac242"&gt;https://www.arcgis.com/home/webmap/viewer.html?webmap=ddbd64b2302347d299cd62bce48ac242&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and it also works in Collector. (did not try in Survey123.. but it should work)&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="477789" class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/477789_pastedImage_3.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If using ArcGIS Pro is an option for you... you can do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Jan 2020 00:41:45 GMT</pubDate>
    <dc:creator>MarkBockenhauer</dc:creator>
    <dc:date>2020-01-09T00:41:45Z</dc:date>
    <item>
      <title>Compare Future Date with Current Date in Arcade in ArcGIS Online</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/compare-future-date-with-current-date-in-arcade-in/m-p/14471#M702</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 have a ArcGIS Online web map which has a feature layer (points) I created via Survey123. I have the feature layer symbolized based on the status (Not Complete, Complete, Follow-up/Reminder). The follow-up reminder status is the one I'm having issues with. This reminder status is set by the user via Surv123 and also has a date field associated with it. This date field contains the date that the user wants to be reminded on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My goal is to have that particular point to display on the web map ONLY when the reminder date is hit. Today is Jan 8 and say the reminder date was set for Jan 10. Well I only want this point to show starting on Jan 10 and after that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was going to create the current date and time from Arcade with:&amp;nbsp;&lt;SPAN style="font-size: 10.0pt;"&gt;Text(Now(),'MM/DD/Y hh:mm:ss')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;and compare it to the reminder date via the layer filter in the web map. But this won't work as this Arcade field of current date/time doesn't show in the list of fields in the filter option in my web map.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any solutions or better directions to take? &lt;A href="https://community.esri.com/migrated-users/3100"&gt;Xander Bakker&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Adam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jan 2020 20:01:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/compare-future-date-with-current-date-in-arcade-in/m-p/14471#M702</guid>
      <dc:creator>joerodmey</dc:creator>
      <dc:date>2020-01-08T20:01:45Z</dc:date>
    </item>
    <item>
      <title>Re: Compare Future Date with Current Date in Arcade in ArcGIS Online</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/compare-future-date-with-current-date-in-arcade-in/m-p/14472#M703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/333537"&gt;joe rodmey&lt;/A&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A couple of comments on your question:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;If you&amp;nbsp;want to compare dates, don't convert that to text. Use the DateDiff to compare them&lt;/LI&gt;&lt;LI&gt;I don't think filtering data based on an arcade expression is possible at this moment. Perhaps define a symbol that&amp;nbsp;stands out when the date is met (or has passed).&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jan 2020 20:16:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/compare-future-date-with-current-date-in-arcade-in/m-p/14472#M703</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2020-01-08T20:16:47Z</dc:date>
    </item>
    <item>
      <title>Re: Compare Future Date with Current Date in Arcade in ArcGIS Online</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/compare-future-date-with-current-date-in-arcade-in/m-p/14473#M704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm comparing in filtering not in arcade. I cant have the points visible on the map as the field crews using the map on collector use it as a work to be done tool. If they see a point they will act on it. This is why i just want to "hide" these reminder points till when they are due.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jan 2020 20:20:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/compare-future-date-with-current-date-in-arcade-in/m-p/14473#M704</guid>
      <dc:creator>joerodmey</dc:creator>
      <dc:date>2020-01-08T20:20:42Z</dc:date>
    </item>
    <item>
      <title>Re: Compare Future Date with Current Date in Arcade in ArcGIS Online</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/compare-future-date-with-current-date-in-arcade-in/m-p/14474#M705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.esri.com/people/Joerodney"&gt;Joerodney&lt;/A&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OK, cool... Have you considered Workforce to help guide your field crew to act on open assignments?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jan 2020 20:35:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/compare-future-date-with-current-date-in-arcade-in/m-p/14474#M705</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2020-01-08T20:35:15Z</dc:date>
    </item>
    <item>
      <title>Re: Compare Future Date with Current Date in Arcade in ArcGIS Online</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/compare-future-date-with-current-date-in-arcade-in/m-p/14475#M706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes I have but It wont work because of certain limitations.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jan 2020 20:36:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/compare-future-date-with-current-date-in-arcade-in/m-p/14475#M706</guid>
      <dc:creator>joerodmey</dc:creator>
      <dc:date>2020-01-08T20:36:31Z</dc:date>
    </item>
    <item>
      <title>Re: Compare Future Date with Current Date in Arcade in ArcGIS Online</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/compare-future-date-with-current-date-in-arcade-in/m-p/14476#M707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.esri.com/people/Joerodney"&gt;Joerodney&lt;/A&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you explain what those limitations are?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To use a filter, would require to have a physical field in your data, and that would require a scheduled task each night to update the field to filter on. This could be done with ArcGIS Pro scheduled task that will be available in version 2.5 to be released later this month.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jan 2020 20:47:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/compare-future-date-with-current-date-in-arcade-in/m-p/14476#M707</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2020-01-08T20:47:10Z</dc:date>
    </item>
    <item>
      <title>Re: Compare Future Date with Current Date in Arcade in ArcGIS Online</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/compare-future-date-with-current-date-in-arcade-in/m-p/14477#M708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.esri.com/migrated-users/3100"&gt;Xander Bakker&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are a few of them but right now I'm not considering switching to another product. I just need a way to compare the reminder date with the current date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jan 2020 20:58:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/compare-future-date-with-current-date-in-arcade-in/m-p/14477#M708</guid>
      <dc:creator>joerodmey</dc:creator>
      <dc:date>2020-01-08T20:58:05Z</dc:date>
    </item>
    <item>
      <title>Re: Compare Future Date with Current Date in Arcade in ArcGIS Online</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/compare-future-date-with-current-date-in-arcade-in/m-p/14478#M709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/333537"&gt;joe rodmey&lt;/A&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Implementing Workforce would not&amp;nbsp;mean switching to another product, but&amp;nbsp;it would change your workflow by using this additional product. But&amp;nbsp;I assume you have your reasons for not wanting to do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So back to the original answer; you cannot filter your data based on an Arcade expression. Just checked and this is not possible in the web map, nor in the new beta web map and neither when defining a hosted feature layer view. You will need a real field and this field should be updated (each night) for it to&amp;nbsp;show the correct features. This will require updating that field each night in order to accomplish this. Field workers should refresh that data each morning to show this updates in their app.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jan 2020 21:39:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/compare-future-date-with-current-date-in-arcade-in/m-p/14478#M709</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2020-01-08T21:39:47Z</dc:date>
    </item>
    <item>
      <title>Re: Compare Future Date with Current Date in Arcade in ArcGIS Online</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/compare-future-date-with-current-date-in-arcade-in/m-p/14479#M710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.esri.com/migrated-users/3100"&gt;Xander Bakker&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is your suggestion to perform these updates nightly?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jan 2020 22:23:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/compare-future-date-with-current-date-in-arcade-in/m-p/14479#M710</guid>
      <dc:creator>joerodmey</dc:creator>
      <dc:date>2020-01-08T22:23:04Z</dc:date>
    </item>
    <item>
      <title>Re: Compare Future Date with Current Date in Arcade in ArcGIS Online</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/compare-future-date-with-current-date-in-arcade-in/m-p/14480#M711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/333537"&gt;joe rodmey&lt;/A&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think it would be nice to use the new schedule geoprocessing tool, which will be available in ArcGIS Pro 2.5 (released later this month). You could implement a simple calculation comparing the current date with the scheduled date and set the scheduler to run every night.&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" height="275" src="https://community.esri.com/legacyfs/online/477679_pastedImage_2.png" width="358" /&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jan 2020 22:39:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/compare-future-date-with-current-date-in-arcade-in/m-p/14480#M711</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2020-01-08T22:39:34Z</dc:date>
    </item>
    <item>
      <title>Re: Compare Future Date with Current Date in Arcade in ArcGIS Online</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/compare-future-date-with-current-date-in-arcade-in/m-p/14481#M712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Adam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An Arcade Expression like what follows.. should work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var vstat = ''&lt;BR /&gt;var time1 = Date($feature.FollowupDate)&lt;BR /&gt;if ($feature.Status == 'Complete'){&lt;BR /&gt; vstat = 'Complete'&lt;BR /&gt;}&lt;BR /&gt;else if ($feature.Status == 'Not Started'&amp;amp;&amp;amp; DateDiff(Now(), time1, 'hours')&amp;lt;=0){&lt;BR /&gt; vstat = 'Future Follow Up' &lt;BR /&gt;}&lt;BR /&gt;else if ($feature.Status == 'Not Started'&amp;amp;&amp;amp; DateDiff(Now(), time1, 'hours')&amp;gt;=0){&lt;BR /&gt; vstat = 'Follow up Now' &lt;BR /&gt;}&lt;BR /&gt;else if ($feature.Status == 'Not Complete'&amp;amp;&amp;amp; DateDiff(Now(), time1, 'hours')&amp;gt;=0){&lt;BR /&gt; vstat = 'Still working on it' &lt;BR /&gt;}&lt;BR /&gt;else{&lt;BR /&gt; vstat = 'uknown state'&lt;BR /&gt;}&lt;BR /&gt;return vstat;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, when I tried this in the Web MapViewer, the Symbol states would not generate?&lt;/P&gt;&lt;P&gt;My $feature.Status is a list (coded value) and I created a feature that met each of the desired states.&lt;/P&gt;&lt;P&gt;Was pretty sure this should work.. So, I tried it in ArcGIS Pro and...&amp;nbsp; it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="477788" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/477788_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I set the symbols for future work and "unknown" to transparent.&amp;nbsp; I also labeled all the points using a similar expression to "see" the future follow up features.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using ArcGIS Pro I shared this as a webmap.&amp;nbsp;&amp;nbsp;&lt;A class="link-titled" href="https://www.arcgis.com/home/webmap/viewer.html?webmap=ddbd64b2302347d299cd62bce48ac242" title="https://www.arcgis.com/home/webmap/viewer.html?webmap=ddbd64b2302347d299cd62bce48ac242"&gt;https://www.arcgis.com/home/webmap/viewer.html?webmap=ddbd64b2302347d299cd62bce48ac242&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and it also works in Collector. (did not try in Survey123.. but it should work)&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="477789" class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/477789_pastedImage_3.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If using ArcGIS Pro is an option for you... you can do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jan 2020 00:41:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/compare-future-date-with-current-date-in-arcade-in/m-p/14481#M712</guid>
      <dc:creator>MarkBockenhauer</dc:creator>
      <dc:date>2020-01-09T00:41:45Z</dc:date>
    </item>
    <item>
      <title>Re: Compare Future Date with Current Date in Arcade in ArcGIS Online</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/compare-future-date-with-current-date-in-arcade-in/m-p/14482#M713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Xander - I can't wait till that release&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark - Thanks. I tried your arcade and was able to get it to work directly in the webmap. But I still cant filter based on arcade expressions in AGOL. I don't want the label or the symbol to show until the specified date.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jan 2020 14:27:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/compare-future-date-with-current-date-in-arcade-in/m-p/14482#M713</guid>
      <dc:creator>joerodmey</dc:creator>
      <dc:date>2020-01-09T14:27:05Z</dc:date>
    </item>
    <item>
      <title>Re: Compare Future Date with Current Date in Arcade in ArcGIS Online</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/compare-future-date-with-current-date-in-arcade-in/m-p/14483#M714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I labeled it, just to show that the feature is there and a symbol is not being drawn.&amp;nbsp; You don't need show the label.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What do you need to do with a filter?&amp;nbsp; I am not understanding that part.&amp;nbsp; Or are you saying that using ArcGIS Pro is not an option?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jan 2020 16:23:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/compare-future-date-with-current-date-in-arcade-in/m-p/14483#M714</guid>
      <dc:creator>MarkBockenhauer</dc:creator>
      <dc:date>2020-01-09T16:23:33Z</dc:date>
    </item>
    <item>
      <title>Re: Compare Future Date with Current Date in Arcade in ArcGIS Online</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/compare-future-date-with-current-date-in-arcade-in/m-p/14484#M715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I hope I don't confuse the situation but maybe this is an option. Recently, I wanted to use an Arcade field within the query filter for one of my webmaps but I found out that it isn't supported at this time (&lt;A _jive_internal="true" href="https://community.esri.com/thread/245007-can-you-use-an-arcade-field-in-a-hosted-layers-filter"&gt;thread here&lt;/A&gt;). What I learned is that you can tweak the underlying SQL query using AGO Assistant and that's ultimately what I did.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my case, I had a layer of deficient curb ramps but I only wanted to show locations that were scheduled to be repaired within the next 12 years. A wrinkle in my case is that the year field in the data I was given wasn't stored as a date object so I had to do some on-the-fly tweaking. Anyways, here's an example of the Query Definition that I swapped into the web map using the AGO Assistant:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;(a5facilitycat = 'Curb Ramp') AND (m9upgradeyr &amp;gt;= EXTRACT(YEAR FROM CURRENT_DATE()) ) AND (m9upgradeyr &amp;lt;= EXTRACT(YEAR FROM CURRENT_DATE()) + 12 )&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, I'm just bringing this up since there might be a way to develop a more sophisticated SQL query outside of the Webmap environment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jan 2020 16:39:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/compare-future-date-with-current-date-in-arcade-in/m-p/14484#M715</guid>
      <dc:creator>SteveCole</dc:creator>
      <dc:date>2020-01-09T16:39:51Z</dc:date>
    </item>
    <item>
      <title>Re: Compare Future Date with Current Date in Arcade in ArcGIS Online</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/compare-future-date-with-current-date-in-arcade-in/m-p/14485#M716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mark - Now I need to show labels for only certain features. Is this possible with Arcade? I'm almost there. I was able to do this all in the webmap without bring it into Pro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve - Thanks for the idea and ill keep it in mind if I can't get Arcade to work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jan 2020 20:36:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/compare-future-date-with-current-date-in-arcade-in/m-p/14485#M716</guid>
      <dc:creator>joerodmey</dc:creator>
      <dc:date>2020-01-10T20:36:30Z</dc:date>
    </item>
    <item>
      <title>Re: Compare Future Date with Current Date in Arcade in ArcGIS Online</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/compare-future-date-with-current-date-in-arcade-in/m-p/14486#M717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.esri.com/people/Joerodney"&gt;Joerodney&lt;/A&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the feature contains the information for the condition to decide whether to show the label or just an empty string, you can use Arcade to do this. What is the condition?&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jan 2020 21:00:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/compare-future-date-with-current-date-in-arcade-in/m-p/14486#M717</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2020-01-10T21:00:13Z</dc:date>
    </item>
    <item>
      <title>Re: Compare Future Date with Current Date in Arcade in ArcGIS Online</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/compare-future-date-with-current-date-in-arcade-in/m-p/14487#M718</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.esri.com/migrated-users/3100"&gt;Xander Bakker&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The condition to show labels would be "Status is not equal to Reminder"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jan 2020 21:10:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/compare-future-date-with-current-date-in-arcade-in/m-p/14487#M718</guid>
      <dc:creator>joerodmey</dc:creator>
      <dc:date>2020-01-10T21:10:59Z</dc:date>
    </item>
    <item>
      <title>Re: Compare Future Date with Current Date in Arcade in ArcGIS Online</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/compare-future-date-with-current-date-in-arcade-in/m-p/14488#M719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.esri.com/people/Joerodney"&gt;Joerodney&lt;/A&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the text of the label is based on an attribute I assume?&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jan 2020 21:25:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/compare-future-date-with-current-date-in-arcade-in/m-p/14488#M719</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2020-01-10T21:25:12Z</dc:date>
    </item>
    <item>
      <title>Re: Compare Future Date with Current Date in Arcade in ArcGIS Online</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/compare-future-date-with-current-date-in-arcade-in/m-p/14489#M720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What you could probably do in that case is use the expression below (adapt it to your field names).&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;$feature&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Status &lt;SPAN class="operator token"&gt;!=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"Reminder"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
    &lt;SPAN class="keyword token"&gt;return&lt;/SPAN&gt; $feature&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;LabelText&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;else&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
    &lt;SPAN class="keyword token"&gt;return&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;""&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;("Status" and "LabelText" should be replaced with the names of the fields in your data)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 20:35:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/compare-future-date-with-current-date-in-arcade-in/m-p/14489#M720</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2021-12-10T20:35:12Z</dc:date>
    </item>
    <item>
      <title>Re: Compare Future Date with Current Date in Arcade in ArcGIS Online</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/compare-future-date-with-current-date-in-arcade-in/m-p/14490#M721</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks I'll test it out&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jan 2020 21:33:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/compare-future-date-with-current-date-in-arcade-in/m-p/14490#M721</guid>
      <dc:creator>joerodmey</dc:creator>
      <dc:date>2020-01-10T21:33:05Z</dc:date>
    </item>
  </channel>
</rss>

