<?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: ArcGIS Pro incorrectly converting Time values to Dates during table import in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-incorrectly-converting-time-values-to/m-p/1252219#M64703</link>
    <description>&lt;P&gt;With TableToTable, you don't have to let the software do its best guess, you can control the output type, order etc under fields and properties&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tabletotable.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/61428i9BCC853DACA20502/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tabletotable.png" alt="tabletotable.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
    <pubDate>Fri, 27 Jan 2023 01:37:00 GMT</pubDate>
    <dc:creator>DanPatterson</dc:creator>
    <dc:date>2023-01-27T01:37:00Z</dc:date>
    <item>
      <title>ArcGIS Pro incorrectly converting Time values to Dates during table import</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-incorrectly-converting-time-values-to/m-p/1252201#M64701</link>
      <description>&lt;P&gt;I often import data from .csv files which contain time values stored in 24 hour format, e.g. 08:05:23. Using Table To Table, these fields usually import as Text type fields, no problem.&lt;/P&gt;&lt;P&gt;However I've just noticed - if it can, ArcGIS Pro will actually convert these fields to Date type fields, and convert the time to a date. For example, 08:05:23 becomes 08/05/2023, which clearly isn't correct.&lt;/P&gt;&lt;P&gt;It seems that this process is only prevented if at least one time value in the field cannot be interpreted as a date, e.g. 08:&lt;STRONG&gt;45&lt;/STRONG&gt;:23 will prevent the conversion because there is no month '45'.&lt;/P&gt;&lt;P&gt;Does anyone know a way to prevent this? I would have thought text with format ##:##:## is better interpreted as a time value rather than a date value.&lt;/P&gt;&lt;P&gt;Thanks, Tim&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2023 00:36:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-incorrectly-converting-time-values-to/m-p/1252201#M64701</guid>
      <dc:creator>ToyotaT18</dc:creator>
      <dc:date>2023-01-27T00:36:28Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro incorrectly converting Time values to Dates during table import</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-incorrectly-converting-time-values-to/m-p/1252219#M64703</link>
      <description>&lt;P&gt;With TableToTable, you don't have to let the software do its best guess, you can control the output type, order etc under fields and properties&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tabletotable.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/61428i9BCC853DACA20502/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tabletotable.png" alt="tabletotable.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2023 01:37:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-incorrectly-converting-time-values-to/m-p/1252219#M64703</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2023-01-27T01:37:00Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro incorrectly converting Time values to Dates during table import</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-incorrectly-converting-time-values-to/m-p/1252221#M64704</link>
      <description>&lt;P&gt;Hi Dan, thanks for the reply.&lt;/P&gt;&lt;P&gt;If I change the field type to Text, it &lt;EM&gt;still&lt;/EM&gt; converts the time to a date, and then places it into the Text field.&lt;/P&gt;&lt;P&gt;(Also I then end up with only 4 of my 20+ fields? i.e. it only lists a few of the fields in that Field Map section?)&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2023 02:08:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-incorrectly-converting-time-values-to/m-p/1252221#M64704</guid>
      <dc:creator>ToyotaT18</dc:creator>
      <dc:date>2023-01-27T02:08:36Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro incorrectly converting Time values to Dates during table import</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-incorrectly-converting-time-values-to/m-p/1252229#M64706</link>
      <description>&lt;P&gt;The way to override Microsoft's guesses is to edit a Schema.ini file&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/data/tables/add-an-ascii-or-text-file-table.htm" target="_self"&gt;Add an ASCII or text file table (ArcGIS Pro Help)&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://sites.temple.edu/introgis/2021/08/31/loading-numeric-data-as-text-in-arcgis-pro/" target="_self"&gt;Loading Numeric Data As Text in ArcGIS Pro (Temple Univ)&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Example code in Schema.ini file (assuming the time is in the fourth column):&lt;/P&gt;&lt;LI-CODE lang="c"&gt;[MyExcellentFile.csv]
Col4="TimeValue" Text&lt;/LI-CODE&gt;&lt;P&gt;This will force the fields you want to text.&lt;/P&gt;&lt;P&gt;Or -- you may want to try adding three dummy rows of data to the top of the field with "aaaaaaa" for the time fields you want read in as text, to basically fool Microsoft parser to read that field as text, then you can select and delete those rows after import with the Delete Rows tool.&amp;nbsp; Believe it or not, this is sometimes the easiest solution if it is a one-off file import!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2023 05:06:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-incorrectly-converting-time-values-to/m-p/1252229#M64706</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2023-01-27T05:06:09Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro incorrectly converting Time values to Dates during table import</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-incorrectly-converting-time-values-to/m-p/1252320#M64718</link>
      <description>&lt;P&gt;Peronally, if I have to import a dataset from elsewhere in Pro, I will create an empty table and define the schema ahead of time, then use &lt;STRONG&gt;append&lt;/STRONG&gt;. I seem to have fewer with that approach.&lt;/P&gt;&lt;P&gt;More often, however, I will use Python for data loading, but I get that's not really what you're asking about.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2023 13:46:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-incorrectly-converting-time-values-to/m-p/1252320#M64718</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2023-01-27T13:46:53Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro incorrectly converting Time values to Dates during table import</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-incorrectly-converting-time-values-to/m-p/1252727#M64774</link>
      <description>&lt;P&gt;I had tried adding a dummy row, changing the time value, importing, then deleting the row. It works but is a lot of steps.&lt;/P&gt;&lt;P&gt;I just tried the schema.ini option and it seems to work, the field remains as text and the time value isn't converted to a date. I'll try to incorporate this into my code, i.e. create the schema file, import the data, delete the schema file...&lt;/P&gt;&lt;P&gt;Thanks, Tim&lt;/P&gt;</description>
      <pubDate>Sun, 29 Jan 2023 21:32:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-incorrectly-converting-time-values-to/m-p/1252727#M64774</guid>
      <dc:creator>ToyotaT18</dc:creator>
      <dc:date>2023-01-29T21:32:21Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro incorrectly converting Time values to Dates during table import</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-incorrectly-converting-time-values-to/m-p/1253149#M64814</link>
      <description>&lt;P&gt;If this works for you, please do mark my answer as solution to help others.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2023 00:16:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-incorrectly-converting-time-values-to/m-p/1253149#M64814</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2023-01-31T00:16:16Z</dc:date>
    </item>
  </channel>
</rss>

