<?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: Weekday Date Calculation in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/weekday-date-calculation/m-p/875617#M29167</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Erin,&lt;/P&gt;&lt;P&gt;This is how we got around the holiday issue. I hope this will help someone down the road.&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/472404_pastedImage_2.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;remember that every 5 days equals a 7 day week.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Nov 2019 19:13:49 GMT</pubDate>
    <dc:creator>MichelleWilliams1</dc:creator>
    <dc:date>2019-11-04T19:13:49Z</dc:date>
    <item>
      <title>Weekday Date Calculation</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/weekday-date-calculation/m-p/875615#M29165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there a way to calculate a date that only includes weekdays, excluding weekend days?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;More specifically- I have a 'days to comply' field that has the options: 5, 15, 30.&lt;/P&gt;&lt;P&gt;I'm using the equation&amp;nbsp;&lt;EM&gt;now() + ${DaysToComply}*24*60*60*1000&lt;/EM&gt; to calculate the date, which works, but I don't want the calculation to include or date to fall on a weekend (or preferably holiday as well!).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ie: today is Friday +5 would be Weds but SHOULD be Friday&lt;/P&gt;&lt;P&gt;ie: today is Tuesday +5 would be Sunday but SHOULD be Tuesday&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would like something similar to the workday function from excel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Workaround: changed calc options to include weekend days, 5=7, 15=21, 30=42&lt;/P&gt;&lt;P&gt;However, this does not account for holidays.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Nov 2018 17:56:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/weekday-date-calculation/m-p/875615#M29165</guid>
      <dc:creator>ErinGarcia</dc:creator>
      <dc:date>2018-11-02T17:56:09Z</dc:date>
    </item>
    <item>
      <title>Re: Weekday Date Calculation</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/weekday-date-calculation/m-p/875616#M29166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Erin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The approach of working with calendar days is normally the correct procedure. &amp;nbsp;'Business' days/'weekend' days can vary from region to region and even business to business (as do holidays). &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If needed, the day of the week can be detected via the format-date() function; using that, you can detect whether a day falls on/includes a weekend in the form and add additional days to a calculation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Holiday detection works best with fixed holidays (such as the 4th of July); the format-date() function can be used to check the date value for a conflict. &amp;nbsp;Another alternative would be to have a list of holidays accompany the form as a CSV file and use the pulldata() function to lookup a given date.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jan 2019 21:46:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/weekday-date-calculation/m-p/875616#M29166</guid>
      <dc:creator>JamesTedrick</dc:creator>
      <dc:date>2019-01-11T21:46:13Z</dc:date>
    </item>
    <item>
      <title>Re: Weekday Date Calculation</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/weekday-date-calculation/m-p/875617#M29167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Erin,&lt;/P&gt;&lt;P&gt;This is how we got around the holiday issue. I hope this will help someone down the road.&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/472404_pastedImage_2.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;remember that every 5 days equals a 7 day week.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Nov 2019 19:13:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/weekday-date-calculation/m-p/875617#M29167</guid>
      <dc:creator>MichelleWilliams1</dc:creator>
      <dc:date>2019-11-04T19:13:49Z</dc:date>
    </item>
    <item>
      <title>Re: Weekday Date Calculation</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/weekday-date-calculation/m-p/1199583#M44128</link>
      <description>&lt;P&gt;I am looking for something similar to the OP, but my date calculates based on a number that gets added to an origin date. So I don't just need the calculated date not to fall on a weekend, but the weekends not to be counted at all. So exactly like the =Workday function in excel. Is that possible as of now?&lt;/P&gt;</description>
      <pubDate>Thu, 04 Aug 2022 19:46:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/weekday-date-calculation/m-p/1199583#M44128</guid>
      <dc:creator>KelliW</dc:creator>
      <dc:date>2022-08-04T19:46:04Z</dc:date>
    </item>
  </channel>
</rss>

