<?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: Converting Date to Text in ArcGIS Online Developers Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-developers-questions/converting-date-to-text/m-p/1315991#M1261</link>
    <description>&lt;P&gt;Thanks! That worked. I was thinking I had to go the Excel route to do the calculation.&lt;/P&gt;</description>
    <pubDate>Mon, 07 Aug 2023 12:15:33 GMT</pubDate>
    <dc:creator>Chris_Anderson</dc:creator>
    <dc:date>2023-08-07T12:15:33Z</dc:date>
    <item>
      <title>Converting Date to Text</title>
      <link>https://community.esri.com/t5/arcgis-online-developers-questions/converting-date-to-text/m-p/1313748#M1258</link>
      <description>&lt;P&gt;I am new to Arcade and am using it to convert a dateTime to a text field inside QuickCapture. The text field should be "MM/DD/YYYY" (no number padding). To do so, I have tried both of the following equations:&amp;nbsp;&lt;/P&gt;&lt;P&gt;"${arcadeExpression: Concatenate([text(Month($feature.Survey_Date_Time),M),text(Day($feature.Survey_Date_Time),D),text(Year($feature.Survey_Date_Time),Y)],'/')}"&lt;/P&gt;&lt;P&gt;"${arcadeExpression:var month = Text(Month($feature.Survey_Date_Time));var day = Text(Day($feature.Survey_Date_Time));var year = Text(Year($feature.Survey_Date_Time));var date = Concatenate([month,day,year],'/');return date;}"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately, I keep getting "NaN/NaN/NaN". I tried to use the Text() function to change the result of the Month(), Day(), and Year() results from integer to text, but it does not appear to be the issue.&lt;/P&gt;&lt;P&gt;Any help you can provide is greatly appreciated.&lt;/P&gt;&lt;P&gt;Chris Anderson&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jul 2023 18:27:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-developers-questions/converting-date-to-text/m-p/1313748#M1258</guid>
      <dc:creator>Chris_Anderson</dc:creator>
      <dc:date>2023-07-31T18:27:28Z</dc:date>
    </item>
    <item>
      <title>Re: Converting Date to Text</title>
      <link>https://community.esri.com/t5/arcgis-online-developers-questions/converting-date-to-text/m-p/1313764#M1259</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 the easiest way to convert a Date to a text field.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;return Text(Now(), "MM/DD/YYYY")&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="text.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/76871i5426AFCF0F9433E9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="text.png" alt="text.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Mon, 31 Jul 2023 18:47:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-developers-questions/converting-date-to-text/m-p/1313764#M1259</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2023-07-31T18:47:36Z</dc:date>
    </item>
    <item>
      <title>Re: Converting Date to Text</title>
      <link>https://community.esri.com/t5/arcgis-online-developers-questions/converting-date-to-text/m-p/1315991#M1261</link>
      <description>&lt;P&gt;Thanks! That worked. I was thinking I had to go the Excel route to do the calculation.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Aug 2023 12:15:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-developers-questions/converting-date-to-text/m-p/1315991#M1261</guid>
      <dc:creator>Chris_Anderson</dc:creator>
      <dc:date>2023-08-07T12:15:33Z</dc:date>
    </item>
  </channel>
</rss>

