<?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: ArcGIS Online Arcade time based expression in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/arcgis-online-arcade-time-based-expression/m-p/1068190#M40609</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/122659"&gt;@GIS_Fox&lt;/a&gt;&amp;nbsp;thank you very much! Ill most definitely be using that!&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;!&lt;/P&gt;</description>
    <pubDate>Mon, 14 Jun 2021 22:58:26 GMT</pubDate>
    <dc:creator>OliverSandoval</dc:creator>
    <dc:date>2021-06-14T22:58:26Z</dc:date>
    <item>
      <title>ArcGIS Online Arcade time based expression</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcgis-online-arcade-time-based-expression/m-p/1068041#M40604</link>
      <description>&lt;P&gt;Hello, I am new to arcade and am looking for any advice in the direction I should go for creating a script for an feature service in a web map. I want to be able to change the symbology of the layer based upon what week it is. So the script would ideally switch from Week A to Week B every 7 days and the current week's polygon borders would be highlighted in red. Any advice would be greatly appreciated!&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jun 2021 17:46:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcgis-online-arcade-time-based-expression/m-p/1068041#M40604</guid>
      <dc:creator>OliverSandoval</dc:creator>
      <dc:date>2021-06-14T17:46:19Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Online Arcade time based expression</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcgis-online-arcade-time-based-expression/m-p/1068082#M40605</link>
      <description>&lt;P&gt;I'd possibly use the ISOWeek() Aracade method to check the numerical ISO 8601 week (week starts on Monday) of your date field value, and compare it against Now().&amp;nbsp; And have this as a symbology expression.&amp;nbsp; Something like:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;//does not account for dates in the future
if ( ISOWeek($feature.yourDateField) == ISOWeek(Now()) ) {
  return 'ThisWeek'
else {
  return 'NotThisWeek'
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jun 2021 19:14:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcgis-online-arcade-time-based-expression/m-p/1068082#M40605</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2021-06-14T19:14:14Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Online Arcade time based expression</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcgis-online-arcade-time-based-expression/m-p/1068184#M40607</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/109464"&gt;@OliverSandoval&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I've used a script almost identical to&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/167692"&gt;@DavidPike&lt;/a&gt;&amp;nbsp;'s in his screenshot above. I used the documentation found here for reference if it helps, too:&amp;nbsp;&lt;A href="https://developers.arcgis.com/arcade/function-reference/date_functions/" target="_blank"&gt;https://developers.arcgis.com/arcade/function-reference/date_functions/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jun 2021 22:42:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcgis-online-arcade-time-based-expression/m-p/1068184#M40607</guid>
      <dc:creator>GIS_Fox</dc:creator>
      <dc:date>2021-06-14T22:42:38Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Online Arcade time based expression</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcgis-online-arcade-time-based-expression/m-p/1068188#M40608</link>
      <description>&lt;P&gt;Awesome thank you so much David for your response! Ill try it out!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jun 2021 22:53:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcgis-online-arcade-time-based-expression/m-p/1068188#M40608</guid>
      <dc:creator>OliverSandoval</dc:creator>
      <dc:date>2021-06-14T22:53:59Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Online Arcade time based expression</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcgis-online-arcade-time-based-expression/m-p/1068190#M40609</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/122659"&gt;@GIS_Fox&lt;/a&gt;&amp;nbsp;thank you very much! Ill most definitely be using that!&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;!&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jun 2021 22:58:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcgis-online-arcade-time-based-expression/m-p/1068190#M40609</guid>
      <dc:creator>OliverSandoval</dc:creator>
      <dc:date>2021-06-14T22:58:26Z</dc:date>
    </item>
  </channel>
</rss>

