<?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: Time difference calculation not working in web form in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/time-difference-calculation-not-working-in-web/m-p/1103748#M37727</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/9918"&gt;@JasonCyphers&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;Please refer to the topic on &lt;A href="https://doc.arcgis.com/en/survey123/desktop/create-surveys/decimaldatetime.htm" target="_self"&gt;decimal date time&lt;/A&gt;; the web app uses decimal dates (i.e., 1 = 1 day)&lt;/P&gt;</description>
    <pubDate>Thu, 30 Sep 2021 21:11:26 GMT</pubDate>
    <dc:creator>JamesTedrick</dc:creator>
    <dc:date>2021-09-30T21:11:26Z</dc:date>
    <item>
      <title>Time difference calculation not working in web form</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/time-difference-calculation-not-working-in-web/m-p/1103624#M37704</link>
      <description>&lt;P&gt;Using the calculation&amp;nbsp;&lt;STRONG&gt;int((${arrival_time}-${dispatch_time}) div (1000*60))&amp;nbsp;&lt;/STRONG&gt;to calculate the response time (in minutes).&lt;/P&gt;&lt;P&gt;Formula works in connect and app, but not in the web form.&lt;/P&gt;&lt;P&gt;Is there an alternate formula I can use to obtain this value, that will work in the app &lt;U&gt;and&lt;/U&gt; in the web form?&lt;/P&gt;</description>
      <pubDate>Thu, 30 Sep 2021 17:10:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/time-difference-calculation-not-working-in-web/m-p/1103624#M37704</guid>
      <dc:creator>JasonCyphers</dc:creator>
      <dc:date>2021-09-30T17:10:51Z</dc:date>
    </item>
    <item>
      <title>Re: Time difference calculation not working in web form</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/time-difference-calculation-not-working-in-web/m-p/1103748#M37727</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/9918"&gt;@JasonCyphers&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;Please refer to the topic on &lt;A href="https://doc.arcgis.com/en/survey123/desktop/create-surveys/decimaldatetime.htm" target="_self"&gt;decimal date time&lt;/A&gt;; the web app uses decimal dates (i.e., 1 = 1 day)&lt;/P&gt;</description>
      <pubDate>Thu, 30 Sep 2021 21:11:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/time-difference-calculation-not-working-in-web/m-p/1103748#M37727</guid>
      <dc:creator>JamesTedrick</dc:creator>
      <dc:date>2021-09-30T21:11:26Z</dc:date>
    </item>
    <item>
      <title>Re: Time difference calculation not working in web form</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/time-difference-calculation-not-working-in-web/m-p/1103753#M37728</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/9918"&gt;@JasonCyphers&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Survey123 website uses decimal date time whereas the field app uses both decimal date time and epoch time. The calculation you have written is in epoch time, your calculation will need to use decimal date time for it to work in both the Survey123 web app and field app.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The calculation would need to be:&amp;nbsp;int((decimal-date-time(${arrival_time})-decimal-date-time(${dispatch_time})) * 24*60)&lt;/P&gt;&lt;P&gt;Please see the Constraints and Calculations section of Ismael's &lt;A href="https://community.esri.com/t5/arcgis-survey123-blog/dates-and-time-in-survey123/ba-p/895528" target="_self"&gt;Esri Community blog&lt;/A&gt; for reference. Please also see the &lt;A href="https://doc.arcgis.com/en/survey123/browser/create-surveys/decimaldatetime.htm" target="_self"&gt;Decimal date time documentation&lt;/A&gt; for more information.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Zach&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Sep 2021 21:19:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/time-difference-calculation-not-working-in-web/m-p/1103753#M37728</guid>
      <dc:creator>ZacharySutherby</dc:creator>
      <dc:date>2021-09-30T21:19:42Z</dc:date>
    </item>
  </channel>
</rss>

