<?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 Unique help with AM/PM in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/unique-help-with-am-pm/m-p/1631323#M63256</link>
    <description>&lt;P&gt;Hello Community,&lt;/P&gt;&lt;P&gt;I've been developing a survey in connect for field data collection. We're deploying an underwater camera system where I need to record the time multiple times down to the second. That was a bit of a headache but found help figuring that out by creating a button. Now I've hit another wall where its displayed in 24 hr time and I can't figure out how to change it to 12 hr AM/PM time so that the data export can match our existing access database. Not the end of the world if I can't get it to work, just trying to avoid as much post processing as possible. Here's a sample of what I have on my spreadsheet, any help is appreciated!:&lt;/P&gt;&lt;TABLE width="945px"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="116.234px"&gt;type&lt;/TD&gt;&lt;TD width="145.297px"&gt;name&lt;/TD&gt;&lt;TD width="108.219px"&gt;label&lt;/TD&gt;&lt;TD width="380.797px"&gt;calculation&lt;/TD&gt;&lt;TD width="193.453px"&gt;relevant&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;TABLE width="950px"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="113.859px"&gt;select_one update_drop&lt;/TD&gt;&lt;TD width="148.234px"&gt;refresh_drop&lt;/TD&gt;&lt;TD width="106.969px"&gt;Drop Time:&lt;/TD&gt;&lt;TD width="384.859px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="195.078px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="113.859px"&gt;calculate&lt;/TD&gt;&lt;TD width="148.234px"&gt;drop_time&lt;/TD&gt;&lt;TD width="106.969px"&gt;Drop Time&lt;/TD&gt;&lt;TD width="384.859px"&gt;once(format-date(now(), '%n/%e/%Y %H:%M:%S'))&lt;/TD&gt;&lt;TD width="195.078px"&gt;${refresh_drop}="record"&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="113.859px"&gt;note&lt;/TD&gt;&lt;TD width="148.234px"&gt;camera_drop_time&lt;/TD&gt;&lt;TD width="106.969px"&gt;${drop_time}&lt;/TD&gt;&lt;TD width="384.859px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="195.078px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
    <pubDate>Tue, 08 Jul 2025 21:12:42 GMT</pubDate>
    <dc:creator>Alyciacamille</dc:creator>
    <dc:date>2025-07-08T21:12:42Z</dc:date>
    <item>
      <title>Unique help with AM/PM</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/unique-help-with-am-pm/m-p/1631323#M63256</link>
      <description>&lt;P&gt;Hello Community,&lt;/P&gt;&lt;P&gt;I've been developing a survey in connect for field data collection. We're deploying an underwater camera system where I need to record the time multiple times down to the second. That was a bit of a headache but found help figuring that out by creating a button. Now I've hit another wall where its displayed in 24 hr time and I can't figure out how to change it to 12 hr AM/PM time so that the data export can match our existing access database. Not the end of the world if I can't get it to work, just trying to avoid as much post processing as possible. Here's a sample of what I have on my spreadsheet, any help is appreciated!:&lt;/P&gt;&lt;TABLE width="945px"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="116.234px"&gt;type&lt;/TD&gt;&lt;TD width="145.297px"&gt;name&lt;/TD&gt;&lt;TD width="108.219px"&gt;label&lt;/TD&gt;&lt;TD width="380.797px"&gt;calculation&lt;/TD&gt;&lt;TD width="193.453px"&gt;relevant&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;TABLE width="950px"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="113.859px"&gt;select_one update_drop&lt;/TD&gt;&lt;TD width="148.234px"&gt;refresh_drop&lt;/TD&gt;&lt;TD width="106.969px"&gt;Drop Time:&lt;/TD&gt;&lt;TD width="384.859px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="195.078px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="113.859px"&gt;calculate&lt;/TD&gt;&lt;TD width="148.234px"&gt;drop_time&lt;/TD&gt;&lt;TD width="106.969px"&gt;Drop Time&lt;/TD&gt;&lt;TD width="384.859px"&gt;once(format-date(now(), '%n/%e/%Y %H:%M:%S'))&lt;/TD&gt;&lt;TD width="195.078px"&gt;${refresh_drop}="record"&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="113.859px"&gt;note&lt;/TD&gt;&lt;TD width="148.234px"&gt;camera_drop_time&lt;/TD&gt;&lt;TD width="106.969px"&gt;${drop_time}&lt;/TD&gt;&lt;TD width="384.859px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="195.078px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Tue, 08 Jul 2025 21:12:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/unique-help-with-am-pm/m-p/1631323#M63256</guid>
      <dc:creator>Alyciacamille</dc:creator>
      <dc:date>2025-07-08T21:12:42Z</dc:date>
    </item>
    <item>
      <title>Re: Unique help with AM/PM</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/unique-help-with-am-pm/m-p/1631398#M63259</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/921219"&gt;@Alyciacamille&lt;/a&gt;,&amp;nbsp;You're almost there! I believe Survey123 uses Java’s SimpleDateFormat rules under the hood so if we followed the same rules in your calculation field, instead of using %H, we should use %I (capital i) instead for&amp;nbsp;hour (01–12) format, and at the end add %p for&amp;nbsp;AM/PM marker.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;once(format-date(now(), '%m/%d/%Y %I:%M:%S %p'))&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Please let me know if that works, it sounds exciting!&lt;span class="lia-unicode-emoji" title=":cowboy_hat_face:"&gt;🤠&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jul 2025 00:32:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/unique-help-with-am-pm/m-p/1631398#M63259</guid>
      <dc:creator>Leena_Abdulqader</dc:creator>
      <dc:date>2025-07-09T00:32:22Z</dc:date>
    </item>
    <item>
      <title>Re: Unique help with AM/PM</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/unique-help-with-am-pm/m-p/1631530#M63264</link>
      <description>&lt;P&gt;if that doesn't work here are a couple resources&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/arcgis-survey123-questions/formatting-time-into-12-hour-with-am-pm/td-p/1405322" target="_blank"&gt;https://community.esri.com/t5/arcgis-survey123-questions/formatting-time-into-12-hour-with-am-pm/td-p/1405322&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/arcgis-survey123-questions/time-question-in-12-hour-format-in-feature-report/td-p/1038215" target="_blank"&gt;https://community.esri.com/t5/arcgis-survey123-questions/time-question-in-12-hour-format-in-feature-report/td-p/1038215&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jul 2025 13:32:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/unique-help-with-am-pm/m-p/1631530#M63264</guid>
      <dc:creator>Neal_t_k</dc:creator>
      <dc:date>2025-07-09T13:32:22Z</dc:date>
    </item>
    <item>
      <title>Re: Unique help with AM/PM</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/unique-help-with-am-pm/m-p/1631729#M63280</link>
      <description>&lt;P&gt;Thank you so much for the quick response and help! Sadly, I'm getting an error converting XLSForm message: b"ODK Validate Errors:\n&amp;gt;&amp;gt; Something broke the parser. See above for a hint.\nError evaluating field 'transect_end_time': unrecognized escape in date format string [%I]\nCaused by: java.lang.RuntimeException: unrecognized escape in date format string [%I]\n\t... 10 more\n\nResult: Invalid"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'll keep tinkering around &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jul 2025 18:06:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/unique-help-with-am-pm/m-p/1631729#M63280</guid>
      <dc:creator>Alyciacamille</dc:creator>
      <dc:date>2025-07-09T18:06:49Z</dc:date>
    </item>
    <item>
      <title>Re: Unique help with AM/PM</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/unique-help-with-am-pm/m-p/1632150#M63301</link>
      <description>&lt;P&gt;Bummer! I'm so sorry,&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":slightly_frowning_face:"&gt;🙁&lt;/span&gt;&amp;nbsp;have you tried what Neal shared below?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jul 2025 18:17:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/unique-help-with-am-pm/m-p/1632150#M63301</guid>
      <dc:creator>Leena_Abdulqader</dc:creator>
      <dc:date>2025-07-10T18:17:09Z</dc:date>
    </item>
    <item>
      <title>Re: Unique help with AM/PM</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/unique-help-with-am-pm/m-p/1632609#M63337</link>
      <description>&lt;P&gt;&lt;STRONG&gt;This is indeed the solution.&lt;/STRONG&gt; I won't mark as the solution as the OP hasn't responded back yet though.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jul 2025 20:02:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/unique-help-with-am-pm/m-p/1632609#M63337</guid>
      <dc:creator>abureaux</dc:creator>
      <dc:date>2025-07-11T20:02:58Z</dc:date>
    </item>
    <item>
      <title>Re: Unique help with AM/PM</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/unique-help-with-am-pm/m-p/1635177#M63466</link>
      <description>&lt;P&gt;Thank you! I had come across these posts but thought I was too much of a beginner to get it to work. Here's my final code if anyone happens to need to record date and time in a 12 hr format down to the second:&lt;/P&gt;&lt;TABLE width="575px"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="161px"&gt;type&lt;/TD&gt;&lt;TD width="168px"&gt;name&lt;/TD&gt;&lt;TD width="166px"&gt;label&lt;/TD&gt;&lt;TD width="40px"&gt;calculation&lt;/TD&gt;&lt;TD width="40px"&gt;relevant&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="161px"&gt;calculate&lt;/TD&gt;&lt;TD width="168px"&gt;transect_start_raw&lt;/TD&gt;&lt;TD width="166px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="40px"&gt;once(now())&lt;/TD&gt;&lt;TD width="40px"&gt;${refresh_start}="record"&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="161px"&gt;select_one update_start&lt;/TD&gt;&lt;TD width="168px"&gt;refresh_start&lt;/TD&gt;&lt;TD width="166px"&gt;Start Time:&lt;/TD&gt;&lt;TD width="40px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="40px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="161px"&gt;calculate&lt;/TD&gt;&lt;TD width="168px"&gt;transect_start_time&lt;/TD&gt;&lt;TD width="166px"&gt;Time Started&lt;/TD&gt;&lt;TD width="40px"&gt;concat(format-date(${transect_start_raw}, '%m/%d/%Y'), ' ', if(int(format-date(${transect_start_raw}, '%H')) &amp;lt; 12, concat(if(int(format-date(${transect_start_raw}, '%H')) = 0, '12', string(int(format-date(${transect_start_raw}, '%H')))), ':', format-date(${transect_start_raw}, '%M'), ':', format-date(${transect_start_raw}, '%S'), ' AM'), concat(if(int(format-date(${transect_start_raw}, '%H')) = 12, '12', string(int(format-date(${transect_start_raw}, '%H') - 12))), ':', format-date(${transect_start_raw}, '%M'), ':', format-date(${transect_start_raw}, '%S'), ' PM')))&lt;/TD&gt;&lt;TD width="40px"&gt;${refresh_start}="record"&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="161px"&gt;note&lt;/TD&gt;&lt;TD width="168px"&gt;start_time&lt;/TD&gt;&lt;TD width="166px"&gt;${transect_start_time}&lt;/TD&gt;&lt;TD width="40px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="40px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Tue, 22 Jul 2025 20:50:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/unique-help-with-am-pm/m-p/1635177#M63466</guid>
      <dc:creator>Alyciacamille</dc:creator>
      <dc:date>2025-07-22T20:50:56Z</dc:date>
    </item>
  </channel>
</rss>

