<?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: Calculate Number of Days Between Two Dates in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/calculate-number-of-days-between-two-dates/m-p/1289735#M49311</link>
    <description>&lt;P&gt;Thanks!&amp;nbsp; So I found the doc after I posted and tested it out and it didn't quite work. I did however get the minutes spent for lunch formula to work.&amp;nbsp; Much appreciated for your response.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;int((decimal-date-time(${lunchends}) - decimal-date-time(${lunchstarts})) * 24*60)&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 16 May 2023 19:02:03 GMT</pubDate>
    <dc:creator>icf_Eric_Link</dc:creator>
    <dc:date>2023-05-16T19:02:03Z</dc:date>
    <item>
      <title>Calculate Number of Days Between Two Dates</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/calculate-number-of-days-between-two-dates/m-p/1289721#M49309</link>
      <description>&lt;P&gt;Hello, I've got a form that is tracking usage of equipment.&amp;nbsp; I would like to have the user input a start date and end date and have the form calculate the number of days between the two dates.&amp;nbsp; Does anyone have an idea of an approach for doing this?&amp;nbsp; Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Tue, 16 May 2023 18:30:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/calculate-number-of-days-between-two-dates/m-p/1289721#M49309</guid>
      <dc:creator>icf_Eric_Link</dc:creator>
      <dc:date>2023-05-16T18:30:50Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Number of Days Between Two Dates</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/calculate-number-of-days-between-two-dates/m-p/1289733#M49310</link>
      <description>&lt;P&gt;Here's an excerpt from the S123 Formulas doc:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;Calculations can be used with the responses in&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;date&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;fields. This calculation estimates the number of years between a date entered and today, ideal for calculating somebody's age:&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;int((today() - ${birth_date}) div (1000 * 24 * 60 * 60 * 365.25))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;Replacing today and birth_date with your two questions and removing 365.25 from the numbers would probably do it, but I haven't tested it.&lt;/P&gt;</description>
      <pubDate>Tue, 16 May 2023 18:58:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/calculate-number-of-days-between-two-dates/m-p/1289733#M49310</guid>
      <dc:creator>MobiusSnake</dc:creator>
      <dc:date>2023-05-16T18:58:55Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Number of Days Between Two Dates</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/calculate-number-of-days-between-two-dates/m-p/1289735#M49311</link>
      <description>&lt;P&gt;Thanks!&amp;nbsp; So I found the doc after I posted and tested it out and it didn't quite work. I did however get the minutes spent for lunch formula to work.&amp;nbsp; Much appreciated for your response.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;int((decimal-date-time(${lunchends}) - decimal-date-time(${lunchstarts})) * 24*60)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 May 2023 19:02:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/calculate-number-of-days-between-two-dates/m-p/1289735#M49311</guid>
      <dc:creator>icf_Eric_Link</dc:creator>
      <dc:date>2023-05-16T19:02:03Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Number of Days Between Two Dates</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/calculate-number-of-days-between-two-dates/m-p/1601085#M61937</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone help me?&lt;/P&gt;&lt;P&gt;I have a field called "data_de_in_cio_da_actividade" (default: format-date(${wsdatetime},'%H:%M') and another one called "inserir_data_de_submiss_o" (default: now())&lt;/P&gt;&lt;P&gt;I need to receive a message when the field "inserir_data_de_submiss_o" is less than 14 days from the field "data_de_in_cio_da_actividade"&lt;/P&gt;&lt;P&gt;Already tried this expression but without success&lt;/P&gt;&lt;P&gt;date(${data_de_in_cio_da_activity}) - date(${inser_data_de_submiss_o}) &amp;lt; 14&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your attention,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Mar 2025 20:31:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/calculate-number-of-days-between-two-dates/m-p/1601085#M61937</guid>
      <dc:creator>SIG-EscutismoCNE</dc:creator>
      <dc:date>2025-03-31T20:31:23Z</dc:date>
    </item>
  </channel>
</rss>

