<?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: Date off by a month using Arcade in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/date-off-by-a-month-using-arcade/m-p/145160#M6313</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When using the &lt;A href="https://developers.arcgis.com/arcade/function-reference/date_functions/#date"&gt;Date&lt;/A&gt; function, months are defined by 0-11 instead of 1-12.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;month&lt;/TD&gt;&lt;TD&gt;&lt;A href="https://developers.arcgis.com/arcade/guide/types/#number"&gt;Number&lt;/A&gt;&lt;/TD&gt;&lt;TD&gt;The month (0-11) where &lt;CODE&gt;0&lt;/CODE&gt; is January and &lt;CODE&gt;11&lt;/CODE&gt; is December.&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 May 2020 15:47:45 GMT</pubDate>
    <dc:creator>KenBuja</dc:creator>
    <dc:date>2020-05-13T15:47:45Z</dc:date>
    <item>
      <title>Date off by a month using Arcade</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/date-off-by-a-month-using-arcade/m-p/145159#M6312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A collegue used collector to record some records but a datefield wasn't filled. I decided to use arcade to fill the field:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/492016_pastedImage_4.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But instead of &lt;STRONG&gt;May 11th&lt;/STRONG&gt; I see &lt;STRONG&gt;June 10th&lt;/STRONG&gt;. This is so confusing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I understand that date is stored in utc but displayed in my local timezone (I'm near Amsterdam) so I was expecting some hours difference but this seems more than a month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What am I doing wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2020 09:37:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/date-off-by-a-month-using-arcade/m-p/145159#M6312</guid>
      <dc:creator>Gisbert61</dc:creator>
      <dc:date>2020-05-13T09:37:26Z</dc:date>
    </item>
    <item>
      <title>Re: Date off by a month using Arcade</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/date-off-by-a-month-using-arcade/m-p/145160#M6313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When using the &lt;A href="https://developers.arcgis.com/arcade/function-reference/date_functions/#date"&gt;Date&lt;/A&gt; function, months are defined by 0-11 instead of 1-12.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;month&lt;/TD&gt;&lt;TD&gt;&lt;A href="https://developers.arcgis.com/arcade/guide/types/#number"&gt;Number&lt;/A&gt;&lt;/TD&gt;&lt;TD&gt;The month (0-11) where &lt;CODE&gt;0&lt;/CODE&gt; is January and &lt;CODE&gt;11&lt;/CODE&gt; is December.&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2020 15:47:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/date-off-by-a-month-using-arcade/m-p/145160#M6313</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2020-05-13T15:47:45Z</dc:date>
    </item>
    <item>
      <title>Re: Date off by a month using Arcade</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/date-off-by-a-month-using-arcade/m-p/1142748#M51276</link>
      <description>&lt;P&gt;Can anyone explain why the month() would be indexed at 0, while day() and year() actually returns what one would expect? Python treats months consistently, and I just can't wrap my head around why arcade would have been designed this way.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Feb 2022 17:55:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/date-off-by-a-month-using-arcade/m-p/1142748#M51276</guid>
      <dc:creator>JonathanJew1</dc:creator>
      <dc:date>2022-02-10T17:55:23Z</dc:date>
    </item>
    <item>
      <title>Re: Date off by a month using Arcade</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/date-off-by-a-month-using-arcade/m-p/1276357#M67676</link>
      <description>&lt;P&gt;yeah it makes no sense..&lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2023 20:21:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/date-off-by-a-month-using-arcade/m-p/1276357#M67676</guid>
      <dc:creator>DanThompson</dc:creator>
      <dc:date>2023-04-06T20:21:57Z</dc:date>
    </item>
    <item>
      <title>Re: Date off by a month using Arcade</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/date-off-by-a-month-using-arcade/m-p/1296568#M69940</link>
      <description>&lt;P&gt;Although it is stated in the documentation for both the Date function and the Month function, it makes no sense at all that this is 0-based.&lt;/P&gt;&lt;P&gt;The problem with changing that is that any existing arcade expressions that use these functions will fail. I would still recommend Esri to change these features instead of continuing to bear the pain all the following years.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2023 08:16:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/date-off-by-a-month-using-arcade/m-p/1296568#M69940</guid>
      <dc:creator>bogrevy</dc:creator>
      <dc:date>2023-06-07T08:16:25Z</dc:date>
    </item>
    <item>
      <title>Re: Date off by a month using Arcade</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/date-off-by-a-month-using-arcade/m-p/1502578#M85333</link>
      <description>&lt;P&gt;This seems pretty insane to me: months are randomly zero indexed? Who would have checked off on this? This is clearly a bug.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2024 16:32:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/date-off-by-a-month-using-arcade/m-p/1502578#M85333</guid>
      <dc:creator>jfisher</dc:creator>
      <dc:date>2024-07-08T16:32:53Z</dc:date>
    </item>
  </channel>
</rss>

