<?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 function for expression in popup in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/arcade-date-function-for-expression-in-popup/m-p/79901#M3892</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/331151"&gt;Todd Helt&lt;/A&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are different profiles that define what is possible in Arcade (symbology, labels, pop-up, field calculations, different types of attribute rules and so on). If you go to the playground you can select a profile (where you want to use Arcade) and see what is possible:&amp;nbsp;&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/arcade/playground/" title="https://developers.arcgis.com/arcade/playground/"&gt;ArcGIS Arcade | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These are the different profiles you will see:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/461981_pastedImage_4.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Oct 2019 20:51:21 GMT</pubDate>
    <dc:creator>XanderBakker</dc:creator>
    <dc:date>2019-10-15T20:51:21Z</dc:date>
    <item>
      <title>Arcade date function for expression in popup</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-date-function-for-expression-in-popup/m-p/79896#M3887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to use the Arcade "date" function in an expression for a popup to return the day, month, year but without the time. Well actually would like to lose the day of the week too. The documentation I refer to the time as an "optional" field:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IIf(IsEmpty($feature.InspDt), Date($feature.PrevInspDt), Date($feature.InspDt))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Returns this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-align: left; color: #333333; text-transform: none; text-indent: 0px; letter-spacing: 0px; font-family: 'Avenir Next W01','Avenir Next W00','Avenir Next','Avenir','Helvetica Neue',sans-serif; font-size: 14px; font-style: normal; font-variant: normal; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; orphans: 2; float: none; -webkit-text-stroke-width: 0px; background-color: transparent;"&gt;"Thu Mar 21 2019 20:00:00 GMT-0400 (Eastern Daylight Time)"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-align: left; color: #333333; text-transform: none; text-indent: 0px; letter-spacing: 0px; font-family: 'Avenir Next W01','Avenir Next W00','Avenir Next','Avenir','Helvetica Neue',sans-serif; font-size: 14px; font-style: normal; font-variant: normal; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; orphans: 2; float: none; -webkit-text-stroke-width: 0px; background-color: transparent;"&gt;So our archived time data is all mucked up and for our purposes we only really need month, day, year anyway. Is there something I can add to this Arcade Date function so that it returns the date but without the "&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #333333; font-family: 'Avenir Next W01','Avenir Next W00','Avenir Next','Avenir','Helvetica Neue',sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: 0px; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;20:00:00 GMT-0400 (Eastern Daylight Time)", and ideally without the day of the week "Thu" portion as well??&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-align: left; color: #333333; text-transform: none; text-indent: 0px; letter-spacing: 0px; font-family: 'Avenir Next W01','Avenir Next W00','Avenir Next','Avenir','Helvetica Neue',sans-serif; font-size: 14px; font-style: normal; font-variant: normal; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; orphans: 2; float: none; -webkit-text-stroke-width: 0px; background-color: transparent;"&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #333333; font-family: 'Avenir Next W01','Avenir Next W00','Avenir Next','Avenir','Helvetica Neue',sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: 0px; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;&lt;BR /&gt;Thank you! &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-align: left; color: #333333; text-transform: none; text-indent: 0px; letter-spacing: 0px; font-family: 'Avenir Next W01','Avenir Next W00','Avenir Next','Avenir','Helvetica Neue',sans-serif; font-size: 14px; font-style: normal; font-variant: normal; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; orphans: 2; float: none; -webkit-text-stroke-width: 0px; background-color: transparent;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-align: left; color: #333333; text-transform: none; text-indent: 0px; letter-spacing: 0px; font-family: 'Avenir Next W01','Avenir Next W00','Avenir Next','Avenir','Helvetica Neue',sans-serif; font-size: 14px; font-style: normal; font-variant: normal; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; orphans: 2; float: none; -webkit-text-stroke-width: 0px; background-color: transparent;"&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #333333; font-family: 'Avenir Next W01','Avenir Next W00','Avenir Next','Avenir','Helvetica Neue',sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: 0px; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;arcgis online arcade‌&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-align: left; color: #333333; text-transform: none; text-indent: 0px; letter-spacing: 0px; font-family: 'Avenir Next W01','Avenir Next W00','Avenir Next','Avenir','Helvetica Neue',sans-serif; font-size: 14px; font-style: normal; font-variant: normal; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; orphans: 2; float: none; -webkit-text-stroke-width: 0px; background-color: transparent;"&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #333333; font-family: 'Avenir Next W01','Avenir Next W00','Avenir Next','Avenir','Helvetica Neue',sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: 0px; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;arcade attribute expressions‌&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/tag/arcade pop-ups/tg-p"&gt;#arcade pop-ups&lt;/A&gt;‌&lt;SPAN style="text-align: left; color: #333333; text-transform: none; text-indent: 0px; letter-spacing: 0px; font-family: 'Avenir Next W01','Avenir Next W00','Avenir Next','Avenir','Helvetica Neue',sans-serif; font-size: 14px; font-style: normal; font-variant: normal; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; orphans: 2; float: none; -webkit-text-stroke-width: 0px; background-color: transparent;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Oct 2019 20:58:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-date-function-for-expression-in-popup/m-p/79896#M3887</guid>
      <dc:creator>ToddHelt</dc:creator>
      <dc:date>2019-10-14T20:58:20Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade date function for expression in popup</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-date-function-for-expression-in-popup/m-p/79897#M3888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/331151" target="_blank"&gt;Todd Helt&lt;/A&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could use something like this (assuming that the input date is a string and you want to return a string):&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; InspDt &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"Thu Mar 21 2019 20:00:00 GMT-0400 (Eastern Daylight Time)"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; arr &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;Split&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;InspDt&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;' '&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;4&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;return&lt;/SPAN&gt; arr&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;" "&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; arr&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;2&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;", "&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; arr&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;3&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will return "Mar 21, 2019".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 23:05:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-date-function-for-expression-in-popup/m-p/79897#M3888</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2021-12-10T23:05:03Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade date function for expression in popup</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-date-function-for-expression-in-popup/m-p/79898#M3889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Xander,&lt;/P&gt;&lt;P&gt;Thanks for your response, starting to see the light lol. I should have clarified the input date is actually not a string, but rather a date type, and I want to return a string like your snippet. Is there a slight modification you can recommend or it a whole other approach?&lt;/P&gt;&lt;P&gt;Thanks again!&lt;BR /&gt;Todd&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Oct 2019 18:52:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-date-function-for-expression-in-popup/m-p/79898#M3889</guid>
      <dc:creator>ToddHelt</dc:creator>
      <dc:date>2019-10-15T18:52:36Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade date function for expression in popup</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-date-function-for-expression-in-popup/m-p/79899#M3890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried using the &lt;A href="https://developers.arcgis.com/arcade/function-reference/data_functions/#text"&gt;Text function&lt;/A&gt; to format the date?&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;Text($feature.PrevInspDt, 'MMMM D, Y')‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Oct 2019 19:06:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-date-function-for-expression-in-popup/m-p/79899#M3890</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2019-10-15T19:06:22Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade date function for expression in popup</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-date-function-for-expression-in-popup/m-p/79900#M3891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Ken, I had not thought of that...but just tried that and worked in my IIf function, and it worked as desired so good to go!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Write a script to return a string of the day, month, year from a date field, to show in the pop-up.&lt;BR /&gt;// If the InpsDt is null, then display PrevInspDt, otherwise display InspDt&lt;BR /&gt;IIf(IsEmpty($feature.InspDt), Text($feature.PrevInspDt, 'MMM D, Y'), Text($feature.InspDt, 'MMM D, Y'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; word-wrap: break-word;"&gt; I think I am getting a little confused about Arcade for labeling and Arcade for expressions in pop-ups. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Would it be correct to say that certain Arcade functions work for popups but don't work in labeling, and vice versa?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Oct 2019 19:42:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-date-function-for-expression-in-popup/m-p/79900#M3891</guid>
      <dc:creator>ToddHelt</dc:creator>
      <dc:date>2019-10-15T19:42:39Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade date function for expression in popup</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-date-function-for-expression-in-popup/m-p/79901#M3892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/331151"&gt;Todd Helt&lt;/A&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are different profiles that define what is possible in Arcade (symbology, labels, pop-up, field calculations, different types of attribute rules and so on). If you go to the playground you can select a profile (where you want to use Arcade) and see what is possible:&amp;nbsp;&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/arcade/playground/" title="https://developers.arcgis.com/arcade/playground/"&gt;ArcGIS Arcade | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These are the different profiles you will see:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/461981_pastedImage_4.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Oct 2019 20:51:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-date-function-for-expression-in-popup/m-p/79901#M3892</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2019-10-15T20:51:21Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade date function for expression in popup</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-date-function-for-expression-in-popup/m-p/79902#M3893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Don't forget to click Mark Correct on the reply that best answered your question.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Oct 2019 11:28:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-date-function-for-expression-in-popup/m-p/79902#M3893</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2019-10-16T11:28:24Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade date function for expression in popup</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-date-function-for-expression-in-popup/m-p/79903#M3894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Ken, that is exactly what I needed!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Oct 2020 21:23:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-date-function-for-expression-in-popup/m-p/79903#M3894</guid>
      <dc:creator>ZacharyBaron1</dc:creator>
      <dc:date>2020-10-16T21:23:55Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade date function for expression in popup</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-date-function-for-expression-in-popup/m-p/1233217#M48957</link>
      <description>&lt;P&gt;Thank you! Sometimes the answer is not a long read through Arcade date documentation.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Nov 2022 14:40:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-date-function-for-expression-in-popup/m-p/1233217#M48957</guid>
      <dc:creator>BugPie</dc:creator>
      <dc:date>2022-11-18T14:40:06Z</dc:date>
    </item>
  </channel>
</rss>

