<?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 DiffDate() and Today () not working as expected in Dashboards in ArcGIS Dashboards Questions</title>
    <link>https://community.esri.com/t5/arcgis-dashboards-questions/diffdate-and-today-not-working-as-expected-in/m-p/1527294#M10196</link>
    <description>&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;I am trying to get a simple count of days till the end of the year and for some reason Arcade is not preforming calculations with &lt;EM&gt;Today()&lt;/EM&gt; like I am expecting.&amp;nbsp; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;When I use the code :&lt;/FONT&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;DateDiff(date(2025,1,1), date(2024,8,26), 'days' ) -&amp;gt;&lt;STRONG&gt; I get 128 days&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;But when I use the code: &lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;DateDiff(date(2025,1,1), date(today()), 'days' ) -&amp;gt;&lt;STRONG&gt; I get 159 days&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;I am using the advanced formatting window on an indicator in a dashboard. &lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Is there something obvious I am missing here? Why would the today() function add 30 extra days?&lt;/FONT&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 26 Aug 2024 17:27:24 GMT</pubDate>
    <dc:creator>LindseyGreidanus</dc:creator>
    <dc:date>2024-08-26T17:27:24Z</dc:date>
    <item>
      <title>DiffDate() and Today () not working as expected in Dashboards</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/diffdate-and-today-not-working-as-expected-in/m-p/1527294#M10196</link>
      <description>&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;I am trying to get a simple count of days till the end of the year and for some reason Arcade is not preforming calculations with &lt;EM&gt;Today()&lt;/EM&gt; like I am expecting.&amp;nbsp; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;When I use the code :&lt;/FONT&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;DateDiff(date(2025,1,1), date(2024,8,26), 'days' ) -&amp;gt;&lt;STRONG&gt; I get 128 days&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;But when I use the code: &lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;DateDiff(date(2025,1,1), date(today()), 'days' ) -&amp;gt;&lt;STRONG&gt; I get 159 days&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;I am using the advanced formatting window on an indicator in a dashboard. &lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Is there something obvious I am missing here? Why would the today() function add 30 extra days?&lt;/FONT&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Aug 2024 17:27:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/diffdate-and-today-not-working-as-expected-in/m-p/1527294#M10196</guid>
      <dc:creator>LindseyGreidanus</dc:creator>
      <dc:date>2024-08-26T17:27:24Z</dc:date>
    </item>
    <item>
      <title>Re: DiffDate() and Today () not working as expected in Dashboards</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/diffdate-and-today-not-working-as-expected-in/m-p/1527304#M10197</link>
      <description>&lt;P&gt;In the function &lt;STRONG&gt;Date&lt;/STRONG&gt;, the second parameter is the month number, but it's &lt;EM&gt;zero-indexed&lt;/EM&gt;. Meaning 0 = January, etc. So 8 is September.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Aug 2024 17:34:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/diffdate-and-today-not-working-as-expected-in/m-p/1527304#M10197</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2024-08-26T17:34:35Z</dc:date>
    </item>
    <item>
      <title>Re: DiffDate() and Today () not working as expected in Dashboards</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/diffdate-and-today-not-working-as-expected-in/m-p/1527309#M10198</link>
      <description>&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Aug 2024 17:38:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/diffdate-and-today-not-working-as-expected-in/m-p/1527309#M10198</guid>
      <dc:creator>LindseyGreidanus</dc:creator>
      <dc:date>2024-08-26T17:38:33Z</dc:date>
    </item>
    <item>
      <title>Re: DiffDate() and Today () not working as expected in Dashboards</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/diffdate-and-today-not-working-as-expected-in/m-p/1527750#M10201</link>
      <description>&lt;P&gt;You might also be able to utilise the &lt;STRONG&gt;ISOMonth&lt;/STRONG&gt; function which offers &lt;EM&gt;"Values range from 1-12 where January is 1 and December is 12.&lt;/EM&gt;"&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/arcade/function-reference/date_functions/#isomonth" target="_blank"&gt;https://developers.arcgis.com/arcade/function-reference/date_functions/#isomonth&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Aug 2024 10:05:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/diffdate-and-today-not-working-as-expected-in/m-p/1527750#M10201</guid>
      <dc:creator>ChrisUnderwood</dc:creator>
      <dc:date>2024-08-27T10:05:11Z</dc:date>
    </item>
  </channel>
</rss>

