<?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 expression to format date in ArcGIS Dashboards Questions</title>
    <link>https://community.esri.com/t5/arcgis-dashboards-questions/arcade-expression-to-format-date/m-p/1579867#M10694</link>
    <description>&lt;P&gt;I have a this kind of variant of this same issue.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="a5c49f44-7b7e-43b0-9038-9c49c8c0b34a.jpg" style="width: 690px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/124230i226572212EF9F7E4/image-size/large?v=v2&amp;amp;px=999" role="button" title="a5c49f44-7b7e-43b0-9038-9c49c8c0b34a.jpg" alt="a5c49f44-7b7e-43b0-9038-9c49c8c0b34a.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;We manage pipe networks. Pipes have install date - or actually typically there is stored Year and Month and never the actual Day. When we store that to ArcGIS Online Water Distribution network we calculate install date. Depending how that calculation goes there is a risk that we get some time for that event too. I can easily delete time by setting each date in midnight with function&amp;nbsp;&lt;/P&gt;&lt;P&gt;Date(Year($feature.installdate),Month($feature.installdate),Day($feature.installdate),0,0,0,0,0)&lt;/P&gt;&lt;P&gt;The problem is that this Arcade function in ArcGIS Pro against ArcGIS Online is fairly slow and I would like to choose only features that are not in midnight. So how to choose features that has in time certain time to focus calculation only in neccessary features. I have thousands of features and maybe hundreds of them have this issue.&lt;/P&gt;&lt;P&gt;Actual time of the day is not really needed in this kind of pipe installations at all - year and month (and maybe day) is definetly accurately enough.&amp;nbsp;&lt;/P&gt;&lt;P&gt;This one chooses the data for one day but I am looking any date where time is for example that 11pm&lt;/P&gt;&lt;P&gt;installdate = timestamp '2011-07-01 23:00:00.000'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 30 Jan 2025 07:02:56 GMT</pubDate>
    <dc:creator>tikola</dc:creator>
    <dc:date>2025-01-30T07:02:56Z</dc:date>
    <item>
      <title>Arcade expression to format date</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/arcade-expression-to-format-date/m-p/1302807#M8004</link>
      <description>&lt;P&gt;I have created an Arcade expression to group attributes and return them in a list. I'm very new to Arcade and having trouble understanding how to format the date. I have attached an image of the expression showing my progress.&lt;/P&gt;&lt;P&gt;Currently the date is returned as "Jun 23, 2023, 10:31:00 AM GMT+12" but I would like to see it as 23/06/23.&lt;/P&gt;&lt;P&gt;Please can someone tell what I need to fix to change this?&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2023 01:33:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/arcade-expression-to-format-date/m-p/1302807#M8004</guid>
      <dc:creator>FrankHerbert</dc:creator>
      <dc:date>2023-06-26T01:33:13Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade expression to format date</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/arcade-expression-to-format-date/m-p/1302808#M8005</link>
      <description>&lt;P&gt;this may be useful&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/arcade/function-reference/date_functions/" target="_blank"&gt;Date functions | ArcGIS Arcade | ArcGIS Developers&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2023 01:37:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/arcade-expression-to-format-date/m-p/1302808#M8005</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2023-06-26T01:37:56Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade expression to format date</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/arcade-expression-to-format-date/m-p/1302832#M8009</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/73203"&gt;@FrankHerbert&lt;/a&gt;&amp;nbsp;, you can use the date functions as mentioned above.&lt;/P&gt;&lt;P&gt;Below is the code which I use in my maps to format the dates.&lt;/P&gt;&lt;P&gt;Day($feature.date) + "/" + ISOMonth($feature.date) + "/" + ISOYear($feature.date)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SSchott_CLAU_0-1687754512199.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/74119i5E9F13AE1F25BB14/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SSchott_CLAU_0-1687754512199.png" alt="SSchott_CLAU_0-1687754512199.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2023 04:42:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/arcade-expression-to-format-date/m-p/1302832#M8009</guid>
      <dc:creator>SSchott_CLAU</dc:creator>
      <dc:date>2023-06-26T04:42:39Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade expression to format date</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/arcade-expression-to-format-date/m-p/1302971#M8011</link>
      <description>&lt;P&gt;The &lt;A href="https://developers.arcgis.com/arcade/function-reference/text_functions/#text" target="_self"&gt;Text&lt;/A&gt; function is very handy to make various date strings&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Text(Now(), 'YY/MM/DD');&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2023 13:27:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/arcade-expression-to-format-date/m-p/1302971#M8011</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2023-06-26T13:27:40Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade expression to format date</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/arcade-expression-to-format-date/m-p/1501284#M9917</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;To get the date to be returned in a YYYY/MM/DD format you could try&lt;/P&gt;&lt;P&gt;var dateWithoutTime = Left(group.Date, 10);&lt;/P&gt;&lt;P&gt;group.Date is where you would put the field or variable that the date information is stored in. Below is an example of how I used this in my arcade code in AGOL Map Viewer to print out dates from a group in a chronological list.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for (var group in ordered){&lt;BR /&gt;// Extract date part from group.Date&lt;BR /&gt;var dateWithoutTime = Left(group.Date, 10); // Assuming group.Date is in 'YYYY-MM-DD' format&lt;BR /&gt;list += dateWithoutTime + TextFormatting.NewLine;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;list&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this helps&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2024 19:34:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/arcade-expression-to-format-date/m-p/1501284#M9917</guid>
      <dc:creator>MHergel</dc:creator>
      <dc:date>2024-07-03T19:34:49Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade expression to format date</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/arcade-expression-to-format-date/m-p/1579867#M10694</link>
      <description>&lt;P&gt;I have a this kind of variant of this same issue.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="a5c49f44-7b7e-43b0-9038-9c49c8c0b34a.jpg" style="width: 690px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/124230i226572212EF9F7E4/image-size/large?v=v2&amp;amp;px=999" role="button" title="a5c49f44-7b7e-43b0-9038-9c49c8c0b34a.jpg" alt="a5c49f44-7b7e-43b0-9038-9c49c8c0b34a.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;We manage pipe networks. Pipes have install date - or actually typically there is stored Year and Month and never the actual Day. When we store that to ArcGIS Online Water Distribution network we calculate install date. Depending how that calculation goes there is a risk that we get some time for that event too. I can easily delete time by setting each date in midnight with function&amp;nbsp;&lt;/P&gt;&lt;P&gt;Date(Year($feature.installdate),Month($feature.installdate),Day($feature.installdate),0,0,0,0,0)&lt;/P&gt;&lt;P&gt;The problem is that this Arcade function in ArcGIS Pro against ArcGIS Online is fairly slow and I would like to choose only features that are not in midnight. So how to choose features that has in time certain time to focus calculation only in neccessary features. I have thousands of features and maybe hundreds of them have this issue.&lt;/P&gt;&lt;P&gt;Actual time of the day is not really needed in this kind of pipe installations at all - year and month (and maybe day) is definetly accurately enough.&amp;nbsp;&lt;/P&gt;&lt;P&gt;This one chooses the data for one day but I am looking any date where time is for example that 11pm&lt;/P&gt;&lt;P&gt;installdate = timestamp '2011-07-01 23:00:00.000'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2025 07:02:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/arcade-expression-to-format-date/m-p/1579867#M10694</guid>
      <dc:creator>tikola</dc:creator>
      <dc:date>2025-01-30T07:02:56Z</dc:date>
    </item>
  </channel>
</rss>

