<?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 Time format with milliseconds in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/time-format-with-milliseconds/m-p/1291016#M69357</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I need to convert date &amp;amp; time text field in a date field.&lt;/P&gt;&lt;P&gt;The input is like that: "11-05-2023 08:26:01.&lt;STRONG&gt;953&lt;/STRONG&gt;".&lt;/P&gt;&lt;P&gt;Using the "Convert Time Field" tool with the input time format option in &lt;STRONG&gt;milliseconds&lt;/STRONG&gt; (dd-MM-yyyy hh:mm:ss.&lt;STRONG&gt;s&lt;/STRONG&gt;) the output in the new converted field is&amp;nbsp;11/05/2023 08:26:01 with no milliseconds.&lt;/P&gt;&lt;P&gt;I've read that this was a bug, but some years ago....&lt;/P&gt;&lt;P&gt;I've also tryed to create a new date field to store just time, settimg the format like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="xyz_AL_0-1684501437782.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/71150i1C44A609A99814E5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="xyz_AL_0-1684501437782.png" alt="xyz_AL_0-1684501437782.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;As you can see the milliseconds seem to be correctly set....&lt;/P&gt;&lt;P&gt;I use ArcGIS Pro 3.1.0&lt;/P&gt;&lt;P&gt;Any news or idea on how to do that? Thanks&lt;/P&gt;</description>
    <pubDate>Fri, 19 May 2023 13:28:26 GMT</pubDate>
    <dc:creator>xyz_AL</dc:creator>
    <dc:date>2023-05-19T13:28:26Z</dc:date>
    <item>
      <title>Time format with milliseconds</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/time-format-with-milliseconds/m-p/1291016#M69357</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I need to convert date &amp;amp; time text field in a date field.&lt;/P&gt;&lt;P&gt;The input is like that: "11-05-2023 08:26:01.&lt;STRONG&gt;953&lt;/STRONG&gt;".&lt;/P&gt;&lt;P&gt;Using the "Convert Time Field" tool with the input time format option in &lt;STRONG&gt;milliseconds&lt;/STRONG&gt; (dd-MM-yyyy hh:mm:ss.&lt;STRONG&gt;s&lt;/STRONG&gt;) the output in the new converted field is&amp;nbsp;11/05/2023 08:26:01 with no milliseconds.&lt;/P&gt;&lt;P&gt;I've read that this was a bug, but some years ago....&lt;/P&gt;&lt;P&gt;I've also tryed to create a new date field to store just time, settimg the format like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="xyz_AL_0-1684501437782.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/71150i1C44A609A99814E5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="xyz_AL_0-1684501437782.png" alt="xyz_AL_0-1684501437782.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;As you can see the milliseconds seem to be correctly set....&lt;/P&gt;&lt;P&gt;I use ArcGIS Pro 3.1.0&lt;/P&gt;&lt;P&gt;Any news or idea on how to do that? Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 19 May 2023 13:28:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/time-format-with-milliseconds/m-p/1291016#M69357</guid>
      <dc:creator>xyz_AL</dc:creator>
      <dc:date>2023-05-19T13:28:26Z</dc:date>
    </item>
    <item>
      <title>Re: Time format with milliseconds</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/time-format-with-milliseconds/m-p/1291123#M69363</link>
      <description>&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/convert-time-field.htm" target="_blank" rel="noopener"&gt;Convert Time Field&lt;/A&gt; indeed seems to ignore milliseconds.&lt;/P&gt;&lt;P&gt;Instead, you can use &lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/calculate-field.htm" target="_blank" rel="noopener"&gt;Calculate Field&lt;/A&gt; with this Python expression:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;datetime.datetime.strptime(!TextField1!, "%d-%m-%Y %H:%M:%S.%f")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(Replace "TextField1" with the name of your text field, take care that the name is surrounded by exclamation marks)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's a quick test of the Converted vs. the Calculated dates (after I set the Date format for both fields):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JohannesLindner_0-1684512492020.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/71171i185E6EBD6DEAFB9A/image-size/large?v=v2&amp;amp;px=999" role="button" title="JohannesLindner_0-1684512492020.png" alt="JohannesLindner_0-1684512492020.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 May 2023 16:08:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/time-format-with-milliseconds/m-p/1291123#M69363</guid>
      <dc:creator>JohannesLindner</dc:creator>
      <dc:date>2023-05-19T16:08:27Z</dc:date>
    </item>
  </channel>
</rss>

