<?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: Date Time field returns string that is too long in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/date-time-field-returns-string-that-is-too-long/m-p/1316458#M51066</link>
    <description>&lt;P&gt;So after writing out this post, I inspired myself and was able to solve the issue using the function:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;substr(${Sample_Date}, 0, 10)&lt;/LI-CODE&gt;</description>
    <pubDate>Tue, 08 Aug 2023 14:59:48 GMT</pubDate>
    <dc:creator>MFazio</dc:creator>
    <dc:date>2023-08-08T14:59:48Z</dc:date>
    <item>
      <title>Date Time field returns string that is too long</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/date-time-field-returns-string-that-is-too-long/m-p/1316450#M51065</link>
      <description>&lt;P&gt;I am using a date time field to help make a call to the Open Weather Maps API. However, the UNIX time string that gets returned from the date question is 13 characters long, and the API only wants it to be 10 characters long as to not throw an error. Is there a way to limit the Date Time to only return a 10 character string?&lt;/P&gt;&lt;P&gt;Example of default string length:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MFazio_0-1691506084045.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/77560i3BD0C0EA4224A410/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MFazio_0-1691506084045.png" alt="MFazio_0-1691506084045.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;API Response from 13 character UNIX Time string (as pictured above):&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MFazio_1-1691506116533.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/77561iDB659C0B56297CDB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MFazio_1-1691506116533.png" alt="MFazio_1-1691506116533.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;API response after removing 3 trailing zeros:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MFazio_2-1691506163123.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/77562iC5F3A9E279BF1C12/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MFazio_2-1691506163123.png" alt="MFazio_2-1691506163123.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Mike F.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Aug 2023 14:50:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/date-time-field-returns-string-that-is-too-long/m-p/1316450#M51065</guid>
      <dc:creator>MFazio</dc:creator>
      <dc:date>2023-08-08T14:50:56Z</dc:date>
    </item>
    <item>
      <title>Re: Date Time field returns string that is too long</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/date-time-field-returns-string-that-is-too-long/m-p/1316458#M51066</link>
      <description>&lt;P&gt;So after writing out this post, I inspired myself and was able to solve the issue using the function:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;substr(${Sample_Date}, 0, 10)&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 08 Aug 2023 14:59:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/date-time-field-returns-string-that-is-too-long/m-p/1316458#M51066</guid>
      <dc:creator>MFazio</dc:creator>
      <dc:date>2023-08-08T14:59:48Z</dc:date>
    </item>
  </channel>
</rss>

