<?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 Text() Format String in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/arcade-text-format-string/m-p/251915#M1588</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It also doesn't seem to be an issue in ArcGIS Online:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/397858_pastedImage_1.png" style="width: 620px; height: 393px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Mar 2018 15:58:53 GMT</pubDate>
    <dc:creator>XanderBakker</dc:creator>
    <dc:date>2018-03-01T15:58:53Z</dc:date>
    <item>
      <title>Arcade Text() Format String</title>
      <link>https://community.esri.com/t5/developers-questions/arcade-text-format-string/m-p/251912#M1585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ArcGIS Pro 2.1, attribute rule, calculation contains this expression:&lt;/P&gt;&lt;P&gt;Text(Now(), 'ddd D MMM Y')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This gets inserted into the features attribute table, text field:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Wed 28 Feb Y&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also tried this expression:&lt;/P&gt;&lt;P&gt;Text(Now(), 'ddd D MMM yyyy')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This was the result:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Wed 28 Feb yyyy&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's the workaround (messy):&lt;/P&gt;&lt;P&gt;var fir = Text(Now(), 'ddd D MMM');&lt;BR /&gt;var sec = Text(Year(Now()));&lt;BR /&gt;var arr = [fir,sec];&lt;BR /&gt;return Concatenate(arr,' ')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2018 19:09:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/arcade-text-format-string/m-p/251912#M1585</guid>
      <dc:creator>danbecker</dc:creator>
      <dc:date>2018-02-28T19:09:47Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Text() Format String</title>
      <link>https://community.esri.com/t5/developers-questions/arcade-text-format-string/m-p/251913#M1586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, that doesn't appear to work correctly in Pro. If you use the expression "Text(Now(), 'ddd D MMM Y')" in the &lt;A href="https://developers.arcgis.com/arcade/playground/"&gt;Playground&lt;/A&gt;, it returns the expected response. Using "Text(Now(), 'ddd D MMM YY')" in Pro returns &lt;STRONG&gt;Wed 28 Feb 18&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2018 19:40:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/arcade-text-format-string/m-p/251913#M1586</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2018-02-28T19:40:42Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Text() Format String</title>
      <link>https://community.esri.com/t5/developers-questions/arcade-text-format-string/m-p/251914#M1587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Dan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your post and the details. I tested the attribute rule&amp;nbsp;expression in Pro 2.1.2 and it still seems to be an issue.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Text(Now(), 'ddd D MMM Y') ---&amp;gt; returned&amp;nbsp;Thu 1 Mar Y&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am going to test a few more things and possibly write up a bug. I'll keep you posted.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Supriya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2018 15:42:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/arcade-text-format-string/m-p/251914#M1587</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2018-03-01T15:42:51Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Text() Format String</title>
      <link>https://community.esri.com/t5/developers-questions/arcade-text-format-string/m-p/251915#M1588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It also doesn't seem to be an issue in ArcGIS Online:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/397858_pastedImage_1.png" style="width: 620px; height: 393px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2018 15:58:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/arcade-text-format-string/m-p/251915#M1588</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2018-03-01T15:58:53Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Text() Format String</title>
      <link>https://community.esri.com/t5/developers-questions/arcade-text-format-string/m-p/251916#M1589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried the expression:&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;Text(Now(), 'ddd D MMM YYYY') and returned the proper output:&amp;nbsp;&lt;STRONG&gt;Thu 1 Mar 2018&lt;/STRONG&gt; and as Ken mentioned above&amp;nbsp;&lt;SPAN&gt;Text(Now(), 'ddd D MMM YY') returns another proper result:&amp;nbsp;&lt;STRONG&gt;Thu 1 Mar 18&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN&gt;However, since there is a difference between what Pro and Playground is returning for your original expression I have written the following bug:&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="background-color: #ffffff;"&gt;BUG-000112055 -&amp;nbsp;The Arcade function Now doesn't return the proper year when used as an attribute rule in ArcGIS Pro 2.1.2&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN&gt;Especially since this document states that a single Y is enough to reformat the date type:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/arcade/function-reference/text_functions/" title="https://developers.arcgis.com/arcade/function-reference/text_functions/"&gt;Text Functions | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2018 16:10:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/arcade-text-format-string/m-p/251916#M1589</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2018-03-01T16:10:38Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Text() Format String</title>
      <link>https://community.esri.com/t5/developers-questions/arcade-text-format-string/m-p/251917#M1590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should append that bug. It fails with any date, not just Now. For example, this expression&lt;/P&gt;&lt;P&gt;Text($feature.Date,&amp;nbsp; 'ddd D MMM Y')&lt;/P&gt;&lt;P&gt;yields&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Fri 16 Feb Y&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2018 16:21:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/arcade-text-format-string/m-p/251917#M1590</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2018-03-01T16:21:38Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Text() Format String</title>
      <link>https://community.esri.com/t5/developers-questions/arcade-text-format-string/m-p/251918#M1591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It looks like the bug's synopsis was updated.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="background-color: #ffffff; border: 0px;"&gt;BUG-0001&lt;/EM&gt;&lt;EM&gt;12055 -&amp;nbsp;The Arcade expression to format date in attribute rules doesn't return the correct year results&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Thanks for the details &lt;A href="https://community.esri.com/people/kenbuja"&gt;kenbuja&lt;/A&gt;‌ and thanks for the update &lt;A href="https://community.esri.com/people/Supriya_Khadke-esristaff"&gt;Supriya_Khadke-esristaff&lt;/A&gt;‌!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2018 23:42:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/arcade-text-format-string/m-p/251918#M1591</guid>
      <dc:creator>KoryKramer</dc:creator>
      <dc:date>2018-03-01T23:42:30Z</dc:date>
    </item>
  </channel>
</rss>

