<?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>idea Support coalesce of date fields in ArcGIS Survey123 Ideas</title>
    <link>https://community.esri.com/t5/arcgis-survey123-ideas/support-coalesce-of-date-fields/idi-p/934343</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff;"&gt;I would like to coalesce date fields in Survey123. Is this possible? Explanation and use case described below.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff;"&gt;&lt;EM&gt;Note:&amp;nbsp;&lt;/EM&gt;This was raised as a support case but I was referred here to suggest it as an idea (if coalescing of dates is not already supported).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff;"&gt;I've produced a survey form using Connect, published publicly and accessed solely via the web&amp;nbsp;form for submissions. The user is given three options of date entry (reason for this is given below):&lt;/SPAN&gt;&lt;BR style="color: #4c4c4c;" /&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff;"&gt;&lt;STRONG&gt;Date&lt;/STRONG&gt; (d/m/y), &lt;STRONG&gt;Month&lt;/STRONG&gt; (m/y), &lt;STRONG&gt;Year&lt;/STRONG&gt; (y)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff;"&gt;Background calculations are then used to feed those results in to a single RecordDate field using coalesce functions (see below). These are all outside of a repeat (note we have had issues with coalesce functions within a repeat in recent support cases). The bind::esri:fieldType is set to esriFieldTypeDate.&amp;nbsp;The feature is storing the individual date value (date_day, month_year or date_year) but not performing the coalescing function - leaving RecordDate blank. Testing without setting the&amp;nbsp;bind::esri:fieldType to esriFieldTypeDate results in successful coalescing, but stores the output as a string rather than a date. As another workaround, is there a way we could convert this coalesced string to an appropriate date format?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The use case for this is we want a strong understanding of the accuracy of dates submitted with wildlife records. This is important for analysing phenology.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Summary of XLSForm design of what we have tried so far:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE class="j-table jiveBorder" style="border: 1px solid #c6c6c6;" width="100%"&gt;&lt;THEAD&gt;&lt;TR style="background-color: #efefef; height: 25px;"&gt;&lt;TH style="height: 25px;"&gt;type&lt;/TH&gt;&lt;TH style="height: 25px;"&gt;name&lt;/TH&gt;&lt;TH style="height: 25px;"&gt;label&lt;/TH&gt;&lt;TH style="height: 25px;"&gt;calculation&lt;/TH&gt;&lt;/TR&gt;&lt;/THEAD&gt;&lt;TBODY&gt;&lt;TR style="height: 25px;"&gt;&lt;TD style="height: 25px;"&gt;date&lt;/TD&gt;&lt;TD style="height: 25px;"&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff;"&gt;date_day&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="height: 25px;"&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff;"&gt;Date&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="height: 25px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 25px;"&gt;&lt;TD style="height: 25px;"&gt;date&lt;/TD&gt;&lt;TD style="height: 25px;"&gt;monthyear&lt;/TD&gt;&lt;TD style="height: 25px;"&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff;"&gt;Month &amp;amp; Year&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="height: 25px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 25px;"&gt;&lt;TD style="height: 25px;"&gt;date&lt;/TD&gt;&lt;TD style="height: 25px;"&gt;date_year&lt;/TD&gt;&lt;TD style="height: 25px;"&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff;"&gt;Year&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="height: 25px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 25px;"&gt;&lt;TD style="height: 25px;"&gt;hidden&lt;/TD&gt;&lt;TD style="height: 25px;"&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff;"&gt;coalescedate1&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="height: 25px;"&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff;"&gt;Date (coalesced 1)&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="height: 25px;"&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff;"&gt;coalesce(${date_day},${monthyear})&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 25px;"&gt;&lt;TD style="height: 25px;"&gt;&lt;SPAN&gt;hidden&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="height: 25px;"&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff;"&gt;coalescedate2&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="height: 25px;"&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff;"&gt;Date (coalesced 2)&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="height: 25px;"&gt;c&lt;SPAN style="color: #4c4c4c; background-color: #ffffff;"&gt;oalesce(${date_day},${date_year})&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 25px;"&gt;&lt;TD style="height: 25px;"&gt;&lt;SPAN&gt;hidden&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="height: 25px;"&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff;"&gt;coalescedate3&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="height: 25px;"&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff;"&gt;Date (coalesced 3)&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="height: 25px;"&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff;"&gt;coalesce(${coalescedate1},${coalescedate2})&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 25px;"&gt;&lt;TD style="height: 25px;"&gt;&lt;SPAN&gt;hidden&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="height: 25px;"&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff;"&gt;RecordDate&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="height: 25px;"&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff;"&gt;Record date&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="height: 25px;"&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff;"&gt;format-date(${coalescedate3},'%m/%d/%Y')&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 May 2020 16:31:52 GMT</pubDate>
    <dc:creator>DataOfficer</dc:creator>
    <dc:date>2020-05-12T16:31:52Z</dc:date>
    <item>
      <title>Support coalesce of date fields</title>
      <link>https://community.esri.com/t5/arcgis-survey123-ideas/support-coalesce-of-date-fields/idi-p/934343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff;"&gt;I would like to coalesce date fields in Survey123. Is this possible? Explanation and use case described below.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff;"&gt;&lt;EM&gt;Note:&amp;nbsp;&lt;/EM&gt;This was raised as a support case but I was referred here to suggest it as an idea (if coalescing of dates is not already supported).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff;"&gt;I've produced a survey form using Connect, published publicly and accessed solely via the web&amp;nbsp;form for submissions. The user is given three options of date entry (reason for this is given below):&lt;/SPAN&gt;&lt;BR style="color: #4c4c4c;" /&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff;"&gt;&lt;STRONG&gt;Date&lt;/STRONG&gt; (d/m/y), &lt;STRONG&gt;Month&lt;/STRONG&gt; (m/y), &lt;STRONG&gt;Year&lt;/STRONG&gt; (y)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff;"&gt;Background calculations are then used to feed those results in to a single RecordDate field using coalesce functions (see below). These are all outside of a repeat (note we have had issues with coalesce functions within a repeat in recent support cases). The bind::esri:fieldType is set to esriFieldTypeDate.&amp;nbsp;The feature is storing the individual date value (date_day, month_year or date_year) but not performing the coalescing function - leaving RecordDate blank. Testing without setting the&amp;nbsp;bind::esri:fieldType to esriFieldTypeDate results in successful coalescing, but stores the output as a string rather than a date. As another workaround, is there a way we could convert this coalesced string to an appropriate date format?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The use case for this is we want a strong understanding of the accuracy of dates submitted with wildlife records. This is important for analysing phenology.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Summary of XLSForm design of what we have tried so far:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE class="j-table jiveBorder" style="border: 1px solid #c6c6c6;" width="100%"&gt;&lt;THEAD&gt;&lt;TR style="background-color: #efefef; height: 25px;"&gt;&lt;TH style="height: 25px;"&gt;type&lt;/TH&gt;&lt;TH style="height: 25px;"&gt;name&lt;/TH&gt;&lt;TH style="height: 25px;"&gt;label&lt;/TH&gt;&lt;TH style="height: 25px;"&gt;calculation&lt;/TH&gt;&lt;/TR&gt;&lt;/THEAD&gt;&lt;TBODY&gt;&lt;TR style="height: 25px;"&gt;&lt;TD style="height: 25px;"&gt;date&lt;/TD&gt;&lt;TD style="height: 25px;"&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff;"&gt;date_day&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="height: 25px;"&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff;"&gt;Date&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="height: 25px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 25px;"&gt;&lt;TD style="height: 25px;"&gt;date&lt;/TD&gt;&lt;TD style="height: 25px;"&gt;monthyear&lt;/TD&gt;&lt;TD style="height: 25px;"&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff;"&gt;Month &amp;amp; Year&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="height: 25px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 25px;"&gt;&lt;TD style="height: 25px;"&gt;date&lt;/TD&gt;&lt;TD style="height: 25px;"&gt;date_year&lt;/TD&gt;&lt;TD style="height: 25px;"&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff;"&gt;Year&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="height: 25px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 25px;"&gt;&lt;TD style="height: 25px;"&gt;hidden&lt;/TD&gt;&lt;TD style="height: 25px;"&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff;"&gt;coalescedate1&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="height: 25px;"&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff;"&gt;Date (coalesced 1)&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="height: 25px;"&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff;"&gt;coalesce(${date_day},${monthyear})&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 25px;"&gt;&lt;TD style="height: 25px;"&gt;&lt;SPAN&gt;hidden&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="height: 25px;"&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff;"&gt;coalescedate2&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="height: 25px;"&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff;"&gt;Date (coalesced 2)&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="height: 25px;"&gt;c&lt;SPAN style="color: #4c4c4c; background-color: #ffffff;"&gt;oalesce(${date_day},${date_year})&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 25px;"&gt;&lt;TD style="height: 25px;"&gt;&lt;SPAN&gt;hidden&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="height: 25px;"&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff;"&gt;coalescedate3&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="height: 25px;"&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff;"&gt;Date (coalesced 3)&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="height: 25px;"&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff;"&gt;coalesce(${coalescedate1},${coalescedate2})&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 25px;"&gt;&lt;TD style="height: 25px;"&gt;&lt;SPAN&gt;hidden&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="height: 25px;"&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff;"&gt;RecordDate&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="height: 25px;"&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff;"&gt;Record date&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="height: 25px;"&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff;"&gt;format-date(${coalescedate3},'%m/%d/%Y')&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2020 16:31:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-ideas/support-coalesce-of-date-fields/idi-p/934343</guid>
      <dc:creator>DataOfficer</dc:creator>
      <dc:date>2020-05-12T16:31:52Z</dc:date>
    </item>
  </channel>
</rss>

