<?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: Survey123 Date Difference Calculation not working in Web in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-date-difference-calculation-not-working/m-p/1294836#M49615</link>
    <description>&lt;P&gt;Check the Constraints and Calculations section in here:&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-survey123-blog/dates-and-time-in-survey123/ba-p/895528" target="_blank"&gt;https://community.esri.com/t5/arcgis-survey123-blog/dates-and-time-in-survey123/ba-p/895528&lt;/A&gt;&amp;nbsp; You will want to use decimal time instead of UNIX time. Decimal time is a bit more painful to work with, but works in both the Field and web apps.&lt;/P&gt;</description>
    <pubDate>Wed, 31 May 2023 23:35:16 GMT</pubDate>
    <dc:creator>IsmaelChivite</dc:creator>
    <dc:date>2023-05-31T23:35:16Z</dc:date>
    <item>
      <title>Survey123 Date Difference Calculation not working in Web</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-date-difference-calculation-not-working/m-p/1294766#M49613</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;I have a survey that I have built and have some basic calculations to store metrics on the time that a feature has stayed under a previous status for. I have a calculation that evaluates the time Now() and subtracts the time of the last status change to provide the time in that status in minutes. This formula works perfectly on the Survey123 Field App and Connect but doesn't seem to function on the web version. The exact formulas I have tried are:&amp;nbsp;&lt;/P&gt;&lt;P&gt;int((now() - ${previousstatusstarttime}) div (1000 * 60))&lt;/P&gt;&lt;P&gt;int((${statusdatetime} - ${previousstatusstarttime}) div (1000 * 60))&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is the Int function not supported on web? Is there a different way I could do this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, as a bonus question I had a calculation that would break the minutes down into Days, Hours, Minutes for ease of viewing but that also doesn't work. That formula was:&lt;/P&gt;&lt;P&gt;concat(int((now() - ${previousstatusstarttime}) div (1000*60*60*24))," Days ", if(int(((now() - ${previousstatusstarttime}) div (1000*60*60)) mod 24) &amp;lt; 10,"0",""), int(((now() - ${previousstatusstarttime}) div (1000*60*60)) mod 24)," Hours ", if(int(((now() - ${previousstatusstarttime}) div (1000*60)) mod 60) &amp;lt; 10,"0",""), int(((now() - ${previousstatusstarttime}) div (1000*60)) mod 60)," Minutes")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for any help you can provide!!&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2023 20:53:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey123-date-difference-calculation-not-working/m-p/1294766#M49613</guid>
      <dc:creator>LukeCulleny</dc:creator>
      <dc:date>2023-05-31T20:53:39Z</dc:date>
    </item>
    <item>
      <title>Re: Survey123 Date Difference Calculation not working in Web</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-date-difference-calculation-not-working/m-p/1294836#M49615</link>
      <description>&lt;P&gt;Check the Constraints and Calculations section in here:&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-survey123-blog/dates-and-time-in-survey123/ba-p/895528" target="_blank"&gt;https://community.esri.com/t5/arcgis-survey123-blog/dates-and-time-in-survey123/ba-p/895528&lt;/A&gt;&amp;nbsp; You will want to use decimal time instead of UNIX time. Decimal time is a bit more painful to work with, but works in both the Field and web apps.&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2023 23:35:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey123-date-difference-calculation-not-working/m-p/1294836#M49615</guid>
      <dc:creator>IsmaelChivite</dc:creator>
      <dc:date>2023-05-31T23:35:16Z</dc:date>
    </item>
  </channel>
</rss>

