<?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: Bug in format-date function in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/bug-in-format-date-function/m-p/1297222#M49815</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/573013"&gt;@beachcamp&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Testing in the current release of Survey123 Connect (3.17.55) I am not seeing this behavior. If you update your Connect to the latest version is the same behavior observed?&amp;nbsp;&lt;/P&gt;&lt;P&gt;As a side note if you install Survey123 Connect through the &lt;A href="https://apps.microsoft.com/store/detail/arcgis-survey123-connect/9PMST5C0DLST?hl=en-us&amp;amp;gl=us&amp;amp;rtc=1" target="_self"&gt;Microsoft Store&lt;/A&gt;&amp;nbsp;you will receive updates automatically when they are released.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 08 Jun 2023 16:41:13 GMT</pubDate>
    <dc:creator>ZacharySutherby</dc:creator>
    <dc:date>2023-06-08T16:41:13Z</dc:date>
    <item>
      <title>Bug in format-date function</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/bug-in-format-date-function/m-p/1296985#M49796</link>
      <description>&lt;P&gt;Hello!&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have created a survey that utilizes week numbers in some of it's calculations. I'm using a "calculate" field like:&amp;nbsp;&lt;/P&gt;&lt;TABLE width="558"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="557px" height="25px"&gt;format-date(${SurveyDate}, '%W')&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Where "SurveyDate" is simply a date field captured separately.&lt;/P&gt;&lt;P&gt;%W should return a week number from a given date, however it returns an error like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Survey123Connect_efiKHNQ1ue.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/72628iFF6AAF79BC5AFC65/image-size/large?v=v2&amp;amp;px=999" role="button" title="Survey123Connect_efiKHNQ1ue.png" alt="Survey123Connect_efiKHNQ1ue.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The workaround as described &lt;A href="https://community.esri.com/t5/arcgis-survey123-questions/storing-week-number-in-survey123/td-p/737794" target="_blank" rel="noopener"&gt;here&lt;/A&gt; in &lt;STRONG&gt;2018.&amp;nbsp;&lt;/STRONG&gt;Describes the fix as: just use a different format mask, I like %M and &lt;STRONG&gt;THEN&lt;/STRONG&gt; save the XLSForm. Then in the raw XML for the form update the %Ms to %Ws as desired before publishing.&lt;/P&gt;&lt;P&gt;At the moment I'm in Survey123 connect 3.16, and I'm&amp;nbsp;&lt;STRONG&gt;STILL&amp;nbsp;&lt;/STRONG&gt;dealing with this bug. I know the workaround is easy enough, but it's frustrating and does at times lead to mistakes. I just got done fixing some submissions because I published a survey update and forgot to break, then unbreak my survey via raw XML before publishing and they had incorrect week numbers.&lt;/P&gt;&lt;P&gt;Seeing this bug fixed would be very much appreciated.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2023 00:14:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/bug-in-format-date-function/m-p/1296985#M49796</guid>
      <dc:creator>beachcamp</dc:creator>
      <dc:date>2023-06-08T00:14:35Z</dc:date>
    </item>
    <item>
      <title>Re: Bug in format-date function</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/bug-in-format-date-function/m-p/1297222#M49815</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/573013"&gt;@beachcamp&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Testing in the current release of Survey123 Connect (3.17.55) I am not seeing this behavior. If you update your Connect to the latest version is the same behavior observed?&amp;nbsp;&lt;/P&gt;&lt;P&gt;As a side note if you install Survey123 Connect through the &lt;A href="https://apps.microsoft.com/store/detail/arcgis-survey123-connect/9PMST5C0DLST?hl=en-us&amp;amp;gl=us&amp;amp;rtc=1" target="_self"&gt;Microsoft Store&lt;/A&gt;&amp;nbsp;you will receive updates automatically when they are released.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2023 16:41:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/bug-in-format-date-function/m-p/1297222#M49815</guid>
      <dc:creator>ZacharySutherby</dc:creator>
      <dc:date>2023-06-08T16:41:13Z</dc:date>
    </item>
    <item>
      <title>Re: Bug in format-date function</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/bug-in-format-date-function/m-p/1297250#M49817</link>
      <description>&lt;P&gt;Hi Zach,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your response. I updated to 3.17.55 and I am seeing the same error.&lt;/P&gt;&lt;P&gt;I created a brand new survey to verify there wasn't a version issue, with only a "date" field and a text field that should show the week number. I'm seeing the same error with that.&lt;/P&gt;&lt;P&gt;Attaching the sample XLSForm for testing. It's currently set to %M, which works, but changing it to %W fails.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2023 17:30:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/bug-in-format-date-function/m-p/1297250#M49817</guid>
      <dc:creator>beachcamp</dc:creator>
      <dc:date>2023-06-08T17:30:23Z</dc:date>
    </item>
    <item>
      <title>Re: Bug in format-date function</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/bug-in-format-date-function/m-p/1297274#M49819</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/573013"&gt;@beachcamp&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for passing along the XLSForm! Moving the today() function from the calculation column to the default column should do the trick.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2023 17:52:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/bug-in-format-date-function/m-p/1297274#M49819</guid>
      <dc:creator>ZacharySutherby</dc:creator>
      <dc:date>2023-06-08T17:52:30Z</dc:date>
    </item>
    <item>
      <title>Re: Bug in format-date function</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/bug-in-format-date-function/m-p/1297280#M49821</link>
      <description>&lt;P&gt;Well, that did seem to do the trick. Do you happen to know why this matters for %W but not other date formatting options?&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2023 18:04:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/bug-in-format-date-function/m-p/1297280#M49821</guid>
      <dc:creator>beachcamp</dc:creator>
      <dc:date>2023-06-08T18:04:05Z</dc:date>
    </item>
    <item>
      <title>Re: Bug in format-date function</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/bug-in-format-date-function/m-p/1297325#M49826</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/573013"&gt;@beachcamp&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm glad that worked out! In theory it shouldn't like you saw with James' comment in the post you originally linked after the XLSForm is converted you could update the value in the surveys XML. The core issue is with the library that's used to convert the XLSForm to XML incorrectly throwing an error message.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2023 19:13:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/bug-in-format-date-function/m-p/1297325#M49826</guid>
      <dc:creator>ZacharySutherby</dc:creator>
      <dc:date>2023-06-08T19:13:27Z</dc:date>
    </item>
  </channel>
</rss>

