<?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: Arcade date expression issue not working with QuickCapture in ArcGIS QuickCapture Questions</title>
    <link>https://community.esri.com/t5/arcgis-quickcapture-questions/arcade-date-expression-issue-not-working-with/m-p/1409022#M1238</link>
    <description>&lt;P&gt;Which version of QuickCapture are you using? Arcade wasn't supported in versions before &lt;A href="https://community.esri.com/t5/arcgis-quickcapture-blog/streamline-field-data-collection-in-quickcapture/ba-p/1355250" target="_self"&gt;1.18&lt;/A&gt;.&lt;/P&gt;</description>
    <pubDate>Fri, 12 Apr 2024 15:22:40 GMT</pubDate>
    <dc:creator>KenBuja</dc:creator>
    <dc:date>2024-04-12T15:22:40Z</dc:date>
    <item>
      <title>Arcade date expression issue not working with QuickCapture</title>
      <link>https://community.esri.com/t5/arcgis-quickcapture-questions/arcade-date-expression-issue-not-working-with/m-p/1408822#M1236</link>
      <description>&lt;P&gt;I have created a quick capture project and field map project using the same hosted feature layer. Within this layer, I have a date field which uses a calculated expression of:&lt;/P&gt;&lt;P&gt;Now()&lt;/P&gt;&lt;P&gt;which gets the current date and time of user input.&lt;/P&gt;&lt;P&gt;I then have a string field which formats this date to how I want.&lt;/P&gt;&lt;P&gt;An example of this would be&amp;nbsp;&lt;/P&gt;&lt;P&gt;dd/mm/yyyy, hh:mm AM/PM&lt;/P&gt;&lt;P&gt;12/04/2024, 10:45 AM&lt;/P&gt;&lt;P&gt;This arcade expression is:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;// &amp;nbsp;Input Date&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;// AM or PM for minutes&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;ampm&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;When&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Hour&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Now&lt;/SPAN&gt;&lt;SPAN&gt;()) &amp;lt; &lt;/SPAN&gt;&lt;SPAN&gt;12&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"AM"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"PM"&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;// Getting current minutes/s&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;minutes&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;Minute&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Now&lt;/SPAN&gt;&lt;SPAN&gt;());&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;// Adding 0 when the minute is a single digit&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;paddedMinutes&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;When&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;minutes&lt;/SPAN&gt;&lt;SPAN&gt; &amp;lt; &lt;/SPAN&gt;&lt;SPAN&gt;10&lt;/SPAN&gt;&lt;SPAN&gt;, &lt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SPAN&gt;));&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;// Getting current day&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;days&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;Day&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Now&lt;/SPAN&gt;&lt;SPAN&gt;());&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;// Adding 0 when the day is single digit&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;paddeddays&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;when&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;days&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN&gt;10&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"0"&lt;/SPAN&gt;&lt;SPAN&gt;+&lt;/SPAN&gt;&lt;SPAN&gt;days&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;Text&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;days&lt;/SPAN&gt;&lt;SPAN&gt;));&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;// Adding 1 to adjust for zero-indexed months&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;months&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt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;&lt;DIV&gt;&lt;SPAN&gt;This is the result when I see the data in ArcGIS Online (see attached).&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;The dates where it is working are all points collected in field maps while the ones where it hasn't are all in QuickCapture.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 11 Apr 2024 23:07:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-quickcapture-questions/arcade-date-expression-issue-not-working-with/m-p/1408822#M1236</guid>
      <dc:creator>ScumBagsSurfer</dc:creator>
      <dc:date>2024-04-11T23:07:32Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade date expression issue not working with QuickCapture</title>
      <link>https://community.esri.com/t5/arcgis-quickcapture-questions/arcade-date-expression-issue-not-working-with/m-p/1408981#M1237</link>
      <description>&lt;P&gt;This doesn't address the QuickCapture question, but you can get that formatting much easier using the &lt;A href="https://developers.arcgis.com/arcade/function-reference/text_functions/#text" target="_self"&gt;Text&lt;/A&gt; function&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Text(Now(), "DD/MM/YYYY, hh:mm A"); &lt;/LI-CODE&gt;&lt;P&gt;The only thing is doesn't address is the ISOYear, but I'm not clear on why you would want that. If you used your formula on a date like 31 December 2024, it would return "31/12/2025"&lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2024 14:25:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-quickcapture-questions/arcade-date-expression-issue-not-working-with/m-p/1408981#M1237</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2024-04-12T14:25:54Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade date expression issue not working with QuickCapture</title>
      <link>https://community.esri.com/t5/arcgis-quickcapture-questions/arcade-date-expression-issue-not-working-with/m-p/1409022#M1238</link>
      <description>&lt;P&gt;Which version of QuickCapture are you using? Arcade wasn't supported in versions before &lt;A href="https://community.esri.com/t5/arcgis-quickcapture-blog/streamline-field-data-collection-in-quickcapture/ba-p/1355250" target="_self"&gt;1.18&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2024 15:22:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-quickcapture-questions/arcade-date-expression-issue-not-working-with/m-p/1409022#M1238</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2024-04-12T15:22:40Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade date expression issue not working with QuickCapture</title>
      <link>https://community.esri.com/t5/arcgis-quickcapture-questions/arcade-date-expression-issue-not-working-with/m-p/1409531#M1239</link>
      <description>&lt;P&gt;I have found that the original expression is failing in QuickCapture because of the comma followed by a space ", " . It looks like this is an ArcGIS Runtime bug. If you remove the comma the above will work.&lt;/P&gt;
&lt;P&gt;But the following will work also:&amp;nbsp;Text(Now(), "DD/MM/YYYY, hh:mm A");&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Nov 2024 03:25:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-quickcapture-questions/arcade-date-expression-issue-not-working-with/m-p/1409531#M1239</guid>
      <dc:creator>JohnathanHasthorpe</dc:creator>
      <dc:date>2024-11-18T03:25:59Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade date expression issue not working with QuickCapture</title>
      <link>https://community.esri.com/t5/arcgis-quickcapture-questions/arcade-date-expression-issue-not-working-with/m-p/1409532#M1240</link>
      <description>&lt;P&gt;Thanks, I have tested this expression out and it seems to be working when I captured some test points.&lt;/P&gt;</description>
      <pubDate>Sun, 14 Apr 2024 23:14:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-quickcapture-questions/arcade-date-expression-issue-not-working-with/m-p/1409532#M1240</guid>
      <dc:creator>ScumBagsSurfer</dc:creator>
      <dc:date>2024-04-14T23:14:29Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade date expression issue not working with QuickCapture</title>
      <link>https://community.esri.com/t5/arcgis-quickcapture-questions/arcade-date-expression-issue-not-working-with/m-p/1556421#M1330</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm experiencing similar values but I am trying to populate a text field with a text formatted date (MM/DD/YYYY).&lt;/P&gt;&lt;P&gt;I have similar arcade expressions in Field Maps, that work fine, but in QuickCapture arcade editor all looks well, but when I see the written values in ArcGIS Pro they are in epoch format. I'm using app version 1.20.22 and do not have spaces in the formatted expression.&lt;/P&gt;&lt;P&gt;The AGOL hosted feature layer is published with UTC time and then I have been adding new fields for Alaska CreationDate and AKDate (text format of date).&lt;/P&gt;&lt;P&gt;Thanks in advance, Kathy&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="QuickCaptureDateasText.jpg" style="width: 441px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/119069i5D0837DD0C87A5AF/image-size/large?v=v2&amp;amp;px=999" role="button" title="QuickCaptureDateasText.jpg" alt="QuickCaptureDateasText.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ArcGISPro_DateAsText.jpg" style="width: 279px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/119070i246780B025F5D0D2/image-size/large?v=v2&amp;amp;px=999" role="button" title="ArcGISPro_DateAsText.jpg" alt="ArcGISPro_DateAsText.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2024 17:57:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-quickcapture-questions/arcade-date-expression-issue-not-working-with/m-p/1556421#M1330</guid>
      <dc:creator>kmsmikrud</dc:creator>
      <dc:date>2024-11-07T17:57:28Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade date expression issue not working with QuickCapture</title>
      <link>https://community.esri.com/t5/arcgis-quickcapture-questions/arcade-date-expression-issue-not-working-with/m-p/1559537#M1347</link>
      <description>&lt;P&gt;We found a bug for this issue. It will be resolved in the December (1.21) release.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Nov 2024 04:06:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-quickcapture-questions/arcade-date-expression-issue-not-working-with/m-p/1559537#M1347</guid>
      <dc:creator>JohnathanHasthorpe</dc:creator>
      <dc:date>2024-11-18T04:06:50Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade date expression issue not working with QuickCapture</title>
      <link>https://community.esri.com/t5/arcgis-quickcapture-questions/arcade-date-expression-issue-not-working-with/m-p/1559716#M1350</link>
      <description>&lt;P&gt;Great, thanks for looking into this and I look forward to the update in December. Thank-you!&lt;/P&gt;&lt;P&gt;Kathy&lt;/P&gt;</description>
      <pubDate>Mon, 18 Nov 2024 16:00:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-quickcapture-questions/arcade-date-expression-issue-not-working-with/m-p/1559716#M1350</guid>
      <dc:creator>kmsmikrud</dc:creator>
      <dc:date>2024-11-18T16:00:32Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade date expression issue not working with QuickCapture</title>
      <link>https://community.esri.com/t5/arcgis-quickcapture-questions/arcade-date-expression-issue-not-working-with/m-p/1569373#M1364</link>
      <description>&lt;P&gt;Update December 2024. The fix worked and text formatted date is now working :)!!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Dec 2024 16:11:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-quickcapture-questions/arcade-date-expression-issue-not-working-with/m-p/1569373#M1364</guid>
      <dc:creator>kmsmikrud</dc:creator>
      <dc:date>2024-12-17T16:11:00Z</dc:date>
    </item>
  </channel>
</rss>

