<?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 Received different number from JavaScript's getDay() on different platform. in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/received-different-number-from-javascript-s-getday/m-p/764481#M2143</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did anyone having the problem on extending their Survey123 form with JavaScript code? I was trying to get the day of week by passing the date I selected from the form to my JavaScript function and show the day of week on the form.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found that the function returns 0 for Sunday when using Survey123 Connect while returns 0 for Monday when manipulating on every browser.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I code in that function was simple, just &lt;STRONG&gt;return new Date(inputDate).getDay();&lt;/STRONG&gt; .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 Oct 2020 19:30:46 GMT</pubDate>
    <dc:creator>JackLim</dc:creator>
    <dc:date>2020-10-30T19:30:46Z</dc:date>
    <item>
      <title>Received different number from JavaScript's getDay() on different platform.</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/received-different-number-from-javascript-s-getday/m-p/764481#M2143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did anyone having the problem on extending their Survey123 form with JavaScript code? I was trying to get the day of week by passing the date I selected from the form to my JavaScript function and show the day of week on the form.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found that the function returns 0 for Sunday when using Survey123 Connect while returns 0 for Monday when manipulating on every browser.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I code in that function was simple, just &lt;STRONG&gt;return new Date(inputDate).getDay();&lt;/STRONG&gt; .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Oct 2020 19:30:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/received-different-number-from-javascript-s-getday/m-p/764481#M2143</guid>
      <dc:creator>JackLim</dc:creator>
      <dc:date>2020-10-30T19:30:46Z</dc:date>
    </item>
    <item>
      <title>Re: Received different number from JavaScript's getDay() on different platform.</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/received-different-number-from-javascript-s-getday/m-p/1002054#M31121</link>
      <description>&lt;P&gt;Hi Jack,&lt;/P&gt;&lt;P&gt;One thing to check is whether there is any difference in locale between your browser and Operating System?Different locales use different values for firstDayOfWeek.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Brett&lt;/P&gt;</description>
      <pubDate>Tue, 17 Nov 2020 05:31:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/received-different-number-from-javascript-s-getday/m-p/1002054#M31121</guid>
      <dc:creator>BrettStokes</dc:creator>
      <dc:date>2020-11-17T05:31:35Z</dc:date>
    </item>
  </channel>
</rss>

