<?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: Data expression Date in ArcGIS Dashboards Questions</title>
    <link>https://community.esri.com/t5/arcgis-dashboards-questions/data-expression-date/m-p/1306341#M8054</link>
    <description>&lt;P&gt;You can use the &lt;A href="https://developers.arcgis.com/arcade/function-reference/date_functions/#today" target="_self"&gt;Today&lt;/A&gt; function.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var todayDate = Text(Today(),'YYYY-MM-DD');
return Filter(fs, 'date = @todayDate');&lt;/LI-CODE&gt;</description>
    <pubDate>Thu, 06 Jul 2023 19:39:48 GMT</pubDate>
    <dc:creator>KenBuja</dc:creator>
    <dc:date>2023-07-06T19:39:48Z</dc:date>
    <item>
      <title>Data expression Date</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/data-expression-date/m-p/1306336#M8052</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I wanted to use below given data expression&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Data Expression:-&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="andale mono,times" color="#339966"&gt;var portal = Portal('&lt;A href="https://www.arcgis.com/" target="_blank"&gt;https://www.arcgis.com/&lt;/A&gt;');&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times" color="#339966"&gt;var fs = FeatureSetByPortalItem(&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times" color="#339966"&gt;portal,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times" color="#339966"&gt;'b2c50a7730a74f8d808262ce0c37ac79',&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times" color="#339966"&gt;0,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times" color="#339966"&gt;[&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times" color="#339966"&gt;'date',&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times" color="#339966"&gt;'location',&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times" color="#339966"&gt;'total_vaccinations',&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times" color="#339966"&gt;'people_vaccinated',&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times" color="#339966"&gt;'people_vaccinated_per_hundred',&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times" color="#339966"&gt;'people_fully_vaccinated',&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times" color="#339966"&gt;'people_fully_vaccinated_per_hun',&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times" color="#339966"&gt;],&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times" color="#339966"&gt;false&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times" color="#339966"&gt;);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="andale mono,times" color="#339966"&gt;// Find the most recent date from the date field to filter the FeatureSet for the latest record&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times" color="#339966"&gt;var maxDate = Text(Date(&lt;U&gt;&lt;STRONG&gt;Max&lt;/STRONG&gt;&lt;/U&gt;(fs,'date')),'YYYY-MM-DD');&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times" color="#339966"&gt;return Filter(fs, 'date = @maxDate');&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But Instead of Max date function I want to return today records only.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sunita&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jul 2023 19:11:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/data-expression-date/m-p/1306336#M8052</guid>
      <dc:creator>Kristofer</dc:creator>
      <dc:date>2023-07-06T19:11:05Z</dc:date>
    </item>
    <item>
      <title>Re: Data expression Date</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/data-expression-date/m-p/1306341#M8054</link>
      <description>&lt;P&gt;You can use the &lt;A href="https://developers.arcgis.com/arcade/function-reference/date_functions/#today" target="_self"&gt;Today&lt;/A&gt; function.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var todayDate = Text(Today(),'YYYY-MM-DD');
return Filter(fs, 'date = @todayDate');&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 06 Jul 2023 19:39:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/data-expression-date/m-p/1306341#M8054</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2023-07-06T19:39:48Z</dc:date>
    </item>
  </channel>
</rss>

