<?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 to date in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/type-mismatch-converting-to-date/m-p/862647#M26167</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN&gt;Hi! I send you the file of the survey (but I only let four lines in the .csv&amp;nbsp;file)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A class="link-titled" href="https://drive.google.com/file/d/1anbuWivUOCq0EuGBeicV9g3J5P1xT24_/view?usp=sharing" title="https://drive.google.com/file/d/1anbuWivUOCq0EuGBeicV9g3J5P1xT24_/view?usp=sharing"&gt;Atencion domiciliaria Cali.rar - Google Drive&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Mar 2019 16:44:41 GMT</pubDate>
    <dc:creator>DannielaCardenas</dc:creator>
    <dc:date>2019-03-28T16:44:41Z</dc:date>
    <item>
      <title>type mismatch - converting to date</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/type-mismatch-converting-to-date/m-p/862645#M26165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a database with some information of some people, within the birthday of them, but I want to convert this field that is a String into a Date (type field). For this, I am using the function &lt;STRONG&gt;date()&lt;/STRONG&gt;. But I am receiving this error when I try to execute the sheet.&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/440494_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;Here is the sheet extract:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/440496_pastedImage_3.png" /&gt;&lt;/P&gt;&lt;P&gt;With results of the two first lines (field_4 and field_4a):&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-3 jive-image" src="https://community.esri.com/legacyfs/online/440501_pastedImage_4.png" /&gt;&lt;/P&gt;&lt;P&gt;What I try to do in the field_4a is to subtract&amp;nbsp;only the date of this data, so the function would work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I thought that with the result of dia (field_4a), the function&lt;STRONG&gt; date()&lt;/STRONG&gt; could calculate the date field type because when I fill this field (4a) by hand it works!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-6 jive-image" src="https://community.esri.com/legacyfs/online/440505_pastedImage_7.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-5 jive-image" src="https://community.esri.com/legacyfs/online/440503_pastedImage_6.png" /&gt;&lt;/P&gt;&lt;P&gt;Ok, it does not work perfectly (it subtracts a day but I can handle it), but at the least, the function read the string and converts it into a date. Have you any idea of what it is happening when I try to execute the first extract of the sheet that I showed to you? Thank you very much!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Mar 2019 23:40:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/type-mismatch-converting-to-date/m-p/862645#M26165</guid>
      <dc:creator>DannielaCardenas</dc:creator>
      <dc:date>2019-03-26T23:40:55Z</dc:date>
    </item>
    <item>
      <title>Re: type mismatch - converting to date</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/type-mismatch-converting-to-date/m-p/862646#M26166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the day being off - Survey123 uses UTC time and a date is stored as midnight; if you are located in the western hemisphere, the local time displayed will be the day before (as midnight UTC is still the previous day).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the time calculation - I'm not seeing the behavior when I create a form with the formulas (excepting the pulldata function). Can you share a copy of the XLSForm that does not validate?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Mar 2019 16:18:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/type-mismatch-converting-to-date/m-p/862646#M26166</guid>
      <dc:creator>JamesTedrick</dc:creator>
      <dc:date>2019-03-27T16:18:43Z</dc:date>
    </item>
    <item>
      <title>Re: type mismatch - converting to date</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/type-mismatch-converting-to-date/m-p/862647#M26167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN&gt;Hi! I send you the file of the survey (but I only let four lines in the .csv&amp;nbsp;file)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A class="link-titled" href="https://drive.google.com/file/d/1anbuWivUOCq0EuGBeicV9g3J5P1xT24_/view?usp=sharing" title="https://drive.google.com/file/d/1anbuWivUOCq0EuGBeicV9g3J5P1xT24_/view?usp=sharing"&gt;Atencion domiciliaria Cali.rar - Google Drive&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Mar 2019 16:44:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/type-mismatch-converting-to-date/m-p/862647#M26167</guid>
      <dc:creator>DannielaCardenas</dc:creator>
      <dc:date>2019-03-28T16:44:41Z</dc:date>
    </item>
    <item>
      <title>Re: type mismatch - converting to date</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/type-mismatch-converting-to-date/m-p/862648#M26168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm having a similar problem. I have a form that calculates a person's age from a date of birth text field. It works in my original form, but not when I copy and paste into my new form. I'm getting the same error a "type mismatch."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/501792_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/501794_pastedImage_3.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried deleting the cells and then rewriting from scratch and that didn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RyanE&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2020 22:41:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/type-mismatch-converting-to-date/m-p/862648#M26168</guid>
      <dc:creator>ryanEvanczyk</dc:creator>
      <dc:date>2020-07-29T22:41:26Z</dc:date>
    </item>
    <item>
      <title>Re: type mismatch - converting to date</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/type-mismatch-converting-to-date/m-p/1030066#M32697</link>
      <description>&lt;P&gt;I had a similar problem and the only way to solve it was building the date in ISO format, like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Juan_CarlosAlvarez_0-1614185676956.png" style="width: 757px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/6789i0A88A2749C4630C7/image-dimensions/757x106?v=v2" width="757" height="106" role="button" title="Juan_CarlosAlvarez_0-1614185676956.png" alt="Juan_CarlosAlvarez_0-1614185676956.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;it's a bit late, but it works,&lt;/P&gt;&lt;P&gt;JC&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Feb 2021 16:56:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/type-mismatch-converting-to-date/m-p/1030066#M32697</guid>
      <dc:creator>JuanC_Alvarez</dc:creator>
      <dc:date>2021-02-24T16:56:14Z</dc:date>
    </item>
    <item>
      <title>Re: type mismatch - converting to date</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/type-mismatch-converting-to-date/m-p/1167720#M42352</link>
      <description>&lt;P&gt;Has anyone found a better way yet?&lt;BR /&gt;I believe i am having the same issues, this seems counter productive.&lt;BR /&gt;Thanks for the trick though! It sure helps in the meantime!&lt;/P&gt;</description>
      <pubDate>Mon, 25 Apr 2022 20:38:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/type-mismatch-converting-to-date/m-p/1167720#M42352</guid>
      <dc:creator>js80540</dc:creator>
      <dc:date>2022-04-25T20:38:54Z</dc:date>
    </item>
  </channel>
</rss>

