<?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 Convert Time Field - AM vs. PM times in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/convert-time-field-am-vs-pm-times/m-p/1268854#M66787</link>
    <description>&lt;P&gt;I used the "Convert Time Field" to convert text-formatted date/time to a date format in a feature class. For my input time format, I wrote &lt;EM&gt;M/d/yyyy H:mm:ss tt&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;At first glance, the output time field looked fine, until I noticed that except for times between 12:00 and 1:00 PM, PM is changed to AM. AM times remain AM.&lt;/P&gt;&lt;P&gt;However, while what I describe above is the usual result, much less frequently AM and PM are changed from one to the other. I have yet to determine how often this occurs among the 140,000 records in the file, but it is an extremely rare outcome.&lt;/P&gt;&lt;P&gt;Snippets from the table showing these two results are attached.&lt;/P&gt;&lt;P&gt;Any reason for why the AM/PM mix-ups would happen?&lt;/P&gt;</description>
    <pubDate>Fri, 17 Mar 2023 04:45:38 GMT</pubDate>
    <dc:creator>D_Bonsal</dc:creator>
    <dc:date>2023-03-17T04:45:38Z</dc:date>
    <item>
      <title>Convert Time Field - AM vs. PM times</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/convert-time-field-am-vs-pm-times/m-p/1268854#M66787</link>
      <description>&lt;P&gt;I used the "Convert Time Field" to convert text-formatted date/time to a date format in a feature class. For my input time format, I wrote &lt;EM&gt;M/d/yyyy H:mm:ss tt&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;At first glance, the output time field looked fine, until I noticed that except for times between 12:00 and 1:00 PM, PM is changed to AM. AM times remain AM.&lt;/P&gt;&lt;P&gt;However, while what I describe above is the usual result, much less frequently AM and PM are changed from one to the other. I have yet to determine how often this occurs among the 140,000 records in the file, but it is an extremely rare outcome.&lt;/P&gt;&lt;P&gt;Snippets from the table showing these two results are attached.&lt;/P&gt;&lt;P&gt;Any reason for why the AM/PM mix-ups would happen?&lt;/P&gt;</description>
      <pubDate>Fri, 17 Mar 2023 04:45:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/convert-time-field-am-vs-pm-times/m-p/1268854#M66787</guid>
      <dc:creator>D_Bonsal</dc:creator>
      <dc:date>2023-03-17T04:45:38Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Time Field - AM vs. PM times</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/convert-time-field-am-vs-pm-times/m-p/1598374#M94270</link>
      <description>&lt;P&gt;I doubt this will help you much now (it being 2025 and all), but this happened to me, and it's because of the difference between what "H" and "h" mean in the time field.&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;From the docs:&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;• hh—Hours with leading zero for single-digit hours and a 12-hour clock&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;• HH—Hours with leading zero for single-digit hours and a 24-hour clock&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;So, in my case, and for my dataset, I had interpreted my time field as:&amp;nbsp;&lt;/P&gt;&lt;P&gt;MM/dd/yyyy &lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;HH&lt;/FONT&gt;&lt;/STRONG&gt;:mm:ss tt&lt;/P&gt;&lt;P&gt;...and I needed to convert it to a data output field type.&amp;nbsp; I thought all looked ok until, as you mention, &lt;STRONG&gt;I compared the AM / PM, and they are reversed.&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;Since my data used a 12 hr clock and I handled the time as a 24 hr clock, my data read in incorrectly (all was ok except for the tt identifier).&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, to fix, I had to change to:&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;MM/dd/yyyy &lt;STRONG&gt;hh&lt;/STRONG&gt;:mm:ss tt&lt;/P&gt;&lt;P&gt;For others who might be in the midst of a nervous breakdown when that happens, hope this helps!&lt;/P&gt;</description>
      <pubDate>Mon, 24 Mar 2025 01:37:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/convert-time-field-am-vs-pm-times/m-p/1598374#M94270</guid>
      <dc:creator>cgoranson</dc:creator>
      <dc:date>2025-03-24T01:37:35Z</dc:date>
    </item>
  </channel>
</rss>

