<?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: Type mismatch converting text to date in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/type-mismatch-converting-text-to-date/m-p/1167727#M42354</link>
    <description>&lt;P&gt;Did you ever find an answer?&lt;BR /&gt;I am having the same issue&lt;/P&gt;</description>
    <pubDate>Mon, 25 Apr 2022 20:59:12 GMT</pubDate>
    <dc:creator>js80540</dc:creator>
    <dc:date>2022-04-25T20:59:12Z</dc:date>
    <item>
      <title>Type mismatch converting text to date</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/type-mismatch-converting-text-to-date/m-p/1122190#M38990</link>
      <description>&lt;P&gt;Hello there !&lt;/P&gt;&lt;P&gt;I'm coming accross some behaviour I can't explain no matter how many times I try to read and understand what &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/2929"&gt;@IsmaelChivite&lt;/a&gt; explains us in the post '&lt;A title="Dates and Time in Survey123" href="https://community.esri.com/t5/arcgis-survey123-blog/dates-and-time-in-survey123/ba-p/895528" target="_blank" rel="noopener"&gt;Dates and Time in Survey123&lt;/A&gt;' :&lt;/P&gt;&lt;P&gt;I have a form where I want my users to type a date of birth, and I find it easier for them to do that in a tex field formated as 'jj/mm/yyyy'.&lt;BR /&gt;Then I need to use this date to do the simple calculation of the age, so I calculate a text string to meet the ISO format&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ChristopheAgnes_1-1638454808301.png" style="width: 1037px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/28710iF259B68591E9DE31/image-dimensions/1037x44?v=v2" width="1037" height="44" role="button" title="ChristopheAgnes_1-1638454808301.png" alt="ChristopheAgnes_1-1638454808301.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;So from there I would expect the &lt;EM&gt;date(${ISOformatedDate})&lt;/EM&gt; function to give me the date in ESRI format and use it for calculation like "&lt;EM&gt;int((decimal-date-time(today()) - decimal-date-time(date(${ISOformatedDate})) div 365.25)&lt;/EM&gt;". But the first step of using the date() function alone raises the error "Type mismatch converting text to date".&lt;/P&gt;&lt;P&gt;Moreover, when I try to calculate a date type field with the ISO formated string, it seems to work fine. But the same error is then raised when trying to use this field in another calculation...&lt;/P&gt;&lt;P&gt;So what's going on there and how can I do ?&lt;/P&gt;&lt;P&gt;Here is a sample of my sheet and, FYI, I'm using Survey123 Connect v.3.13&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;</description>
      <pubDate>Thu, 02 Dec 2021 14:38:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/type-mismatch-converting-text-to-date/m-p/1122190#M38990</guid>
      <dc:creator>Chris_976</dc:creator>
      <dc:date>2021-12-02T14:38:10Z</dc:date>
    </item>
    <item>
      <title>Re: Type mismatch converting text to date</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/type-mismatch-converting-text-to-date/m-p/1167727#M42354</link>
      <description>&lt;P&gt;Did you ever find an answer?&lt;BR /&gt;I am having the same issue&lt;/P&gt;</description>
      <pubDate>Mon, 25 Apr 2022 20:59:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/type-mismatch-converting-text-to-date/m-p/1167727#M42354</guid>
      <dc:creator>js80540</dc:creator>
      <dc:date>2022-04-25T20:59:12Z</dc:date>
    </item>
    <item>
      <title>Re: Type mismatch converting text to date</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/type-mismatch-converting-text-to-date/m-p/1169156#M42458</link>
      <description>&lt;P&gt;Nope ! I put it aside for the moment as it's not a primary requirement in my survey... &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;BR /&gt;I'll try and look for a solution when I'll manage myself some time.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2022 05:31:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/type-mismatch-converting-text-to-date/m-p/1169156#M42458</guid>
      <dc:creator>Chris_976</dc:creator>
      <dc:date>2022-04-29T05:31:29Z</dc:date>
    </item>
    <item>
      <title>Re: Type mismatch converting text to date</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/type-mismatch-converting-text-to-date/m-p/1638776#M63648</link>
      <description>&lt;P&gt;I have the same problem, does someone have a solution to this.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Aug 2025 13:49:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/type-mismatch-converting-text-to-date/m-p/1638776#M63648</guid>
      <dc:creator>RistoYlem</dc:creator>
      <dc:date>2025-08-04T13:49:21Z</dc:date>
    </item>
  </channel>
</rss>

