<?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: dateTime now() not displaying the correct format in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/datetime-now-not-displaying-the-correct-format/m-p/1278371#M48579</link>
    <description>&lt;P&gt;Go it...Thanks for your quick response!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;JB&lt;/P&gt;</description>
    <pubDate>Thu, 13 Apr 2023 16:59:27 GMT</pubDate>
    <dc:creator>JoseBarrios1</dc:creator>
    <dc:date>2023-04-13T16:59:27Z</dc:date>
    <item>
      <title>dateTime now() not displaying the correct format</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/datetime-now-not-displaying-the-correct-format/m-p/1278089#M48565</link>
      <description>&lt;P&gt;Hello everyone,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm having hard time understanding how the dateTime format work is Survey123. I look at the this blog from Ismael (&lt;A href="https://community.esri.com/t5/arcgis-survey123-blog/dates-and-time-in-survey123/ba-p/895528" target="_blank"&gt;https://community.esri.com/t5/arcgis-survey123-blog/dates-and-time-in-survey123/ba-p/895528&lt;/A&gt;) but it is still not clear to me how to set the correct time format in the XLSForm (Connect . 3.17.55). For example, I want to display on the survey form and record the time as &lt;STRONG&gt;10:40 PM (ET)&lt;/STRONG&gt;. If I set the dateTime default to now() it display the correct format&amp;nbsp; (see A red circle on image) but it records the time as &lt;STRONG&gt;22:40.&lt;/STRONG&gt;&amp;nbsp; Also, when I change the language to Spanish, the display also change to 22:40 (see B red circle on image). Any suggestions on how to accomplish this?&amp;nbsp; Thanks for&amp;nbsp; any help!&lt;/P&gt;&lt;P&gt;JB&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="surveyDate.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/67827iF3BC670AF42C4FD4/image-size/large?v=v2&amp;amp;px=999" role="button" title="surveyDate.png" alt="surveyDate.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Apr 2023 03:16:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/datetime-now-not-displaying-the-correct-format/m-p/1278089#M48565</guid>
      <dc:creator>JoseBarrios1</dc:creator>
      <dc:date>2023-04-13T03:16:50Z</dc:date>
    </item>
    <item>
      <title>Re: dateTime now() not displaying the correct format</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/datetime-now-not-displaying-the-correct-format/m-p/1278092#M48568</link>
      <description>&lt;P&gt;Can you try forcing the date to be stored as 24 hour time from opening?&lt;/P&gt;&lt;P&gt;i.e.put the below into the default or calculation column for the survey_DateTime question?&lt;/P&gt;&lt;P&gt;&lt;EM&gt;format-date(now(),'%Y/%m/%d %H:%M')&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;I imagine it's to do with local device settings where the date is gettin gpulled from.&lt;/P&gt;&lt;P&gt;the notes will show in 24 hour time for both, as you have formatted them this way %:H = 24H&lt;/P&gt;&lt;P&gt;&lt;A href="https://doc.arcgis.com/en/survey123/desktop/create-surveys/xlsformformulas.htm#ESRI_SECTION1_AD27BB09225C4DBC9C04D0C6877E7A42" target="_blank"&gt;https://doc.arcgis.com/en/survey123/desktop/create-surveys/xlsformformulas.htm#ESRI_SECTION1_AD27BB09225C4DBC9C04D0C6877E7A42&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Apr 2023 03:41:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/datetime-now-not-displaying-the-correct-format/m-p/1278092#M48568</guid>
      <dc:creator>ChristopherCounsell</dc:creator>
      <dc:date>2023-04-13T03:41:05Z</dc:date>
    </item>
    <item>
      <title>Re: dateTime now() not displaying the correct format</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/datetime-now-not-displaying-the-correct-format/m-p/1278097#M48570</link>
      <description>&lt;P&gt;Thanks magisian,&lt;/P&gt;&lt;P&gt;I try to set your formula on the default (and calculation ) for the dateTime question but it did not work for me. I'm getting a blank date and time for the default and an error on the calculation (see pic). Thanks once again for your feedback!&lt;/P&gt;&lt;P&gt;JB&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Untitled-4.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/67829i1089FC26FBF75C4C/image-size/large?v=v2&amp;amp;px=999" role="button" title="Untitled-4.png" alt="Untitled-4.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Apr 2023 04:43:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/datetime-now-not-displaying-the-correct-format/m-p/1278097#M48570</guid>
      <dc:creator>JoseBarrios1</dc:creator>
      <dc:date>2023-04-13T04:43:20Z</dc:date>
    </item>
    <item>
      <title>Re: dateTime now() not displaying the correct format</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/datetime-now-not-displaying-the-correct-format/m-p/1278364#M48578</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/148920"&gt;@JoseBarrios1&lt;/a&gt;&amp;nbsp;Unfortunately, it is not possible to use XLSForm syntax to define the time format to be used in the time widget. That is: You cannot control the format used to collect the date/time value in the calendar/time widget in the form.&amp;nbsp; The date and time format in the widget is dictated by the operating system and locale.&lt;/P&gt;&lt;P&gt;The format-date function is used to get a time value and generate a string, which you can then store as an attribute or display in the form as a note.&lt;/P&gt;&lt;P&gt;Your ask looks similar to this idea.&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-survey123-ideas/different-formats-for-time-field-in-survey123/idc-p/1278387" target="_blank"&gt;https://community.esri.com/t5/arcgis-survey123-ideas/different-formats-for-time-field-in-survey123/idc-p/1278387&lt;/A&gt;&amp;nbsp; Feel free to add your input to the idea if appropriate. Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 13 Apr 2023 17:15:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/datetime-now-not-displaying-the-correct-format/m-p/1278364#M48578</guid>
      <dc:creator>IsmaelChivite</dc:creator>
      <dc:date>2023-04-13T17:15:35Z</dc:date>
    </item>
    <item>
      <title>Re: dateTime now() not displaying the correct format</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/datetime-now-not-displaying-the-correct-format/m-p/1278371#M48579</link>
      <description>&lt;P&gt;Go it...Thanks for your quick response!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;JB&lt;/P&gt;</description>
      <pubDate>Thu, 13 Apr 2023 16:59:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/datetime-now-not-displaying-the-correct-format/m-p/1278371#M48579</guid>
      <dc:creator>JoseBarrios1</dc:creator>
      <dc:date>2023-04-13T16:59:27Z</dc:date>
    </item>
  </channel>
</rss>

