<?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: Issue with Dates and URL Parameters in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/issue-with-dates-and-url-parameters/m-p/880522#M30489</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Which version of the app are you using?&amp;nbsp; Older versions always defaulted a date with no time to midnight.&amp;nbsp; Then at some point Arc tries to convert the time stored from UTC to local time or local to UTC depending on the service/form you are using.&amp;nbsp; So if you are at midnight and subtract hours to UTC then you end up on a different day.&amp;nbsp; It could also be you are adding hours which changes the date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The newer apps default to noon instead so it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could also change the form to date time to you get a specific time as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you search the forum there are several posts about this.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/thread/238452"&gt;Timezone issue&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/thread/240034-new-behavior-in-utc-offset-in-date-field-in-v35177"&gt;https://community.esri.com/thread/240034-new-behavior-in-utc-offset-in-date-field-in-v35177&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Sep 2019 13:51:37 GMT</pubDate>
    <dc:creator>DougBrowning</dc:creator>
    <dc:date>2019-09-20T13:51:37Z</dc:date>
    <item>
      <title>Issue with Dates and URL Parameters</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/issue-with-dates-and-url-parameters/m-p/880521#M30488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm having an issue with passing dates into a Survey123 form via URL from a web map. My survey is based on a feature service that is hosted on our on-premises ArcGIS Enterprise 10.6.1 server. The form has 4 dates that are set by the user. When I pass the dates into the Survey123 native form (windows and iOS), they are a day behind what is passed in. IT doesn't appear we have the same issue with the web form.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here are the date fields from the XLS Form:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/460036_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also have a web map that takes the existing fields and passes them into the Survey123 native app via URL. I do this so the user can change one field but keep others, but we will have a way to know that the updates have taken place so it submits as a new Survey.&amp;nbsp;This is the popup in the web app:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/460071_pastedImage_3.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the URL in the Open in Survey123 link (redacted for privacy):&lt;/P&gt;&lt;P&gt;arcgis-survey123://?itemID=99999&lt;BR /&gt;&amp;amp;field:DateStarted=&lt;STRONG&gt;10/01/2019&lt;/STRONG&gt;&lt;BR /&gt;&amp;amp;field:DateFinished=&lt;STRONG&gt;10/01/2019&lt;/STRONG&gt;&lt;BR /&gt;&amp;amp;field:ScheduledWork=&lt;STRONG&gt;10/01/2019&lt;/STRONG&gt;&lt;BR /&gt;&amp;amp;field:ScheduledWorkEndDate=&lt;STRONG&gt;10/01/2019&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And this is what the form looks like when it opens in the windows or iOS app:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-3 jive-image" src="https://community.esri.com/legacyfs/online/460072_pastedImage_18.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Sep 2019 12:20:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/issue-with-dates-and-url-parameters/m-p/880521#M30488</guid>
      <dc:creator>HECAdmin</dc:creator>
      <dc:date>2019-09-20T12:20:29Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Dates and URL Parameters</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/issue-with-dates-and-url-parameters/m-p/880522#M30489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Which version of the app are you using?&amp;nbsp; Older versions always defaulted a date with no time to midnight.&amp;nbsp; Then at some point Arc tries to convert the time stored from UTC to local time or local to UTC depending on the service/form you are using.&amp;nbsp; So if you are at midnight and subtract hours to UTC then you end up on a different day.&amp;nbsp; It could also be you are adding hours which changes the date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The newer apps default to noon instead so it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could also change the form to date time to you get a specific time as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you search the forum there are several posts about this.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/thread/238452"&gt;Timezone issue&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/thread/240034-new-behavior-in-utc-offset-in-date-field-in-v35177"&gt;https://community.esri.com/thread/240034-new-behavior-in-utc-offset-in-date-field-in-v35177&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Sep 2019 13:51:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/issue-with-dates-and-url-parameters/m-p/880522#M30489</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2019-09-20T13:51:37Z</dc:date>
    </item>
  </channel>
</rss>

