<?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: remove time from date in Arcade? in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/remove-time-from-date-in-arcade/m-p/1517804#M60763</link>
    <description>&lt;P&gt;This "removes" the time from a date field. (In actual fact it just resets it to 12:00:00pm but it serves the same purpose).&amp;nbsp; Remember to put a '-1' after the month because January is 0.&lt;/P&gt;&lt;P&gt;var day = text($feature.DateOfRecord, 'DD')&lt;BR /&gt;var month = text($feature.DateOfRecord,'MM')&lt;BR /&gt;var year = text($feature.DateOfRecord,'YYYY')&lt;BR /&gt;var notimedate = date(year,month-1,day)&lt;BR /&gt;return notimedate&lt;/P&gt;</description>
    <pubDate>Sat, 10 Aug 2024 05:48:01 GMT</pubDate>
    <dc:creator>Scott_Sambell</dc:creator>
    <dc:date>2024-08-10T05:48:01Z</dc:date>
    <item>
      <title>remove time from date in Arcade?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/remove-time-from-date-in-arcade/m-p/1079259#M41215</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am trying to label symbols in AGOL and I wrote this arcade but I can't remove time from date?&lt;BR /&gt;any suggestion.&lt;/P&gt;&lt;P&gt;"Owner of Scooter" + " : "+&lt;BR /&gt;DomainName($feature,"vehicle_company")&lt;BR /&gt;+" Inspection Date : "+&lt;BR /&gt;Date($feature.CreationDate)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AhmadrezaMaddi_0-1626364286993.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/18536iC8559E99AA013AF0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AhmadrezaMaddi_0-1626364286993.png" alt="AhmadrezaMaddi_0-1626364286993.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jul 2021 15:53:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/remove-time-from-date-in-arcade/m-p/1079259#M41215</guid>
      <dc:creator>anonymous55</dc:creator>
      <dc:date>2021-07-15T15:53:37Z</dc:date>
    </item>
    <item>
      <title>Re: remove time from date in Arcade?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/remove-time-from-date-in-arcade/m-p/1079269#M41217</link>
      <description>&lt;P&gt;Try converting the date to a string using the &lt;A href="https://developers.arcgis.com/arcade/function-reference/data_functions/#text" target="_self"&gt;&lt;STRONG&gt;Text&lt;/STRONG&gt; function&lt;/A&gt;.&lt;/P&gt;&lt;PRE&gt;Text($feature.CreationDate, 'Y-MM-DD')&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jul 2021 16:00:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/remove-time-from-date-in-arcade/m-p/1079269#M41217</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2021-07-15T16:00:08Z</dc:date>
    </item>
    <item>
      <title>Re: remove time from date in Arcade?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/remove-time-from-date-in-arcade/m-p/1079274#M41218</link>
      <description>&lt;P&gt;This one doesn't give me the date&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AhmadrezaMaddi_0-1626365069238.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/18544i152D933F06FFC4FB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AhmadrezaMaddi_0-1626365069238.png" alt="AhmadrezaMaddi_0-1626365069238.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jul 2021 16:04:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/remove-time-from-date-in-arcade/m-p/1079274#M41218</guid>
      <dc:creator>anonymous55</dc:creator>
      <dc:date>2021-07-15T16:04:38Z</dc:date>
    </item>
    <item>
      <title>Re: remove time from date in Arcade?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/remove-time-from-date-in-arcade/m-p/1079277#M41219</link>
      <description>&lt;P&gt;The function is "Text", not "Date".&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jul 2021 16:06:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/remove-time-from-date-in-arcade/m-p/1079277#M41219</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2021-07-15T16:06:03Z</dc:date>
    </item>
    <item>
      <title>Re: remove time from date in Arcade?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/remove-time-from-date-in-arcade/m-p/1197346#M47161</link>
      <description>&lt;P&gt;Is there a way to get a 'Date' value that does not have time included?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Randy McGregor&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jul 2022 13:46:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/remove-time-from-date-in-arcade/m-p/1197346#M47161</guid>
      <dc:creator>RandyMcGregor3</dc:creator>
      <dc:date>2022-07-29T13:46:50Z</dc:date>
    </item>
    <item>
      <title>Re: remove time from date in Arcade?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/remove-time-from-date-in-arcade/m-p/1517804#M60763</link>
      <description>&lt;P&gt;This "removes" the time from a date field. (In actual fact it just resets it to 12:00:00pm but it serves the same purpose).&amp;nbsp; Remember to put a '-1' after the month because January is 0.&lt;/P&gt;&lt;P&gt;var day = text($feature.DateOfRecord, 'DD')&lt;BR /&gt;var month = text($feature.DateOfRecord,'MM')&lt;BR /&gt;var year = text($feature.DateOfRecord,'YYYY')&lt;BR /&gt;var notimedate = date(year,month-1,day)&lt;BR /&gt;return notimedate&lt;/P&gt;</description>
      <pubDate>Sat, 10 Aug 2024 05:48:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/remove-time-from-date-in-arcade/m-p/1517804#M60763</guid>
      <dc:creator>Scott_Sambell</dc:creator>
      <dc:date>2024-08-10T05:48:01Z</dc:date>
    </item>
  </channel>
</rss>

