<?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 Concat time fields? in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/concat-time-fields/m-p/1326900#M51622</link>
    <description>&lt;P&gt;I am attempting to concat two time field(s) to a text field so the end user can populate business hours. When I preview the expression in Survey123 Connect, I am able to see the range of business hours (24 hr clock), as expected. However, when I publish the Survey to AGOL (and open it in a web browser), I am getting an error: 'Invalid Date' - 'Invalid Date'. This is puzzling!&lt;/P&gt;&lt;P&gt;concat(format-date(${morninghrs}, '%h:%M'), ' - ', format-date(${eveninghrs}, '%h:%M'))&lt;/P&gt;&lt;P&gt;I have also made attempts to concat the function with the following expression:&lt;/P&gt;&lt;P&gt;concat(string(format-date(${morninghrs}, '%h:%M')), ' - ', string(format-date(${eveninghrs}, '%h:%M')))&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated!&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 08 Sep 2023 17:49:37 GMT</pubDate>
    <dc:creator>ChadC</dc:creator>
    <dc:date>2023-09-08T17:49:37Z</dc:date>
    <item>
      <title>Concat time fields?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/concat-time-fields/m-p/1326900#M51622</link>
      <description>&lt;P&gt;I am attempting to concat two time field(s) to a text field so the end user can populate business hours. When I preview the expression in Survey123 Connect, I am able to see the range of business hours (24 hr clock), as expected. However, when I publish the Survey to AGOL (and open it in a web browser), I am getting an error: 'Invalid Date' - 'Invalid Date'. This is puzzling!&lt;/P&gt;&lt;P&gt;concat(format-date(${morninghrs}, '%h:%M'), ' - ', format-date(${eveninghrs}, '%h:%M'))&lt;/P&gt;&lt;P&gt;I have also made attempts to concat the function with the following expression:&lt;/P&gt;&lt;P&gt;concat(string(format-date(${morninghrs}, '%h:%M')), ' - ', string(format-date(${eveninghrs}, '%h:%M')))&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Sep 2023 17:49:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/concat-time-fields/m-p/1326900#M51622</guid>
      <dc:creator>ChadC</dc:creator>
      <dc:date>2023-09-08T17:49:37Z</dc:date>
    </item>
    <item>
      <title>Re: Concat time fields?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/concat-time-fields/m-p/1327765#M51675</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;I'm unsure why the web version of Survey 123 is behaving like this.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;A possible workaround could be to use two text fields to set the starting and ending hours as opposed to computing them from dates. You could use a pair of select_one questions that share a common set of choices for the hours of the day. This would simplify data entry and improve data quality. Admittedly, this might not work for your situation.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Sep 2023 15:14:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/concat-time-fields/m-p/1327765#M51675</guid>
      <dc:creator>ChipMorgan65</dc:creator>
      <dc:date>2023-09-12T15:14:41Z</dc:date>
    </item>
  </channel>
</rss>

