<?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: CSV input not including time with date in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/csv-input-not-including-time-with-date/m-p/1149701#M52248</link>
    <description>&lt;P&gt;Awesome will give that a shot!&lt;/P&gt;</description>
    <pubDate>Wed, 02 Mar 2022 16:57:15 GMT</pubDate>
    <dc:creator>ccowin_odfw</dc:creator>
    <dc:date>2022-03-02T16:57:15Z</dc:date>
    <item>
      <title>CSV input not including time with date</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/csv-input-not-including-time-with-date/m-p/1149383#M52198</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have big script (in a python toolbox) that can take in GPS Collar data from several manufacturers and spits out a feature class for review before it is added to the main database. One of the manufacturers outputs their data in a csv. So I'm just doing a table to table conversion and then going through the rest of the script. The issue is that only the date is coming through and leaving the time for some reason. I don't think it would be too onerous to split up the column in the csv before it was imported (I have another CSV but their date and time come separated and I combine them into 1), but it seems like this shouldn't be a problem in the first place as I'm using a field calculator to just input the entire column into the feature class:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;arcpy.management.&lt;SPAN&gt;CalculateField&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;output_path, &lt;SPAN&gt;'UTC'&lt;/SPAN&gt;,&lt;BR /&gt;                                &lt;SPAN&gt;expression&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;'!Date___Tim!'&lt;/SPAN&gt;,&lt;BR /&gt;                                &lt;SPAN&gt;expression_type&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;'PYTHON 3'&lt;/SPAN&gt;,&lt;BR /&gt;                                &lt;SPAN&gt;code_block&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;"""&lt;/SPAN&gt;&lt;SPAN&gt;"""&lt;/SPAN&gt;,&lt;BR /&gt;                                &lt;SPAN&gt;field_type&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;'DATE'&lt;BR /&gt;&lt;/SPAN&gt;                                &lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;Also tried converting it to a string, but it seems to be losing the time when the CSV is converted to the table, but I have no idea why that would be.&lt;/P&gt;&lt;P&gt;The format in the CSV is:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;%m/%d/%Y %H:%M:%S&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 02 Mar 2022 00:20:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/csv-input-not-including-time-with-date/m-p/1149383#M52198</guid>
      <dc:creator>ccowin_odfw</dc:creator>
      <dc:date>2022-03-02T00:20:47Z</dc:date>
    </item>
    <item>
      <title>Re: CSV input not including time with date</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/csv-input-not-including-time-with-date/m-p/1149508#M52206</link>
      <description>&lt;P&gt;Could you share a sample CSV?&lt;/P&gt;</description>
      <pubDate>Wed, 02 Mar 2022 11:29:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/csv-input-not-including-time-with-date/m-p/1149508#M52206</guid>
      <dc:creator>JayantaPoddar</dc:creator>
      <dc:date>2022-03-02T11:29:47Z</dc:date>
    </item>
    <item>
      <title>Re: CSV input not including time with date</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/csv-input-not-including-time-with-date/m-p/1149631#M52235</link>
      <description>&lt;P&gt;I've noticed the same behavior in the Table To Table GP tool in pro if I try .csv or .xls.&lt;/P&gt;&lt;P&gt;However, if I open the csv in Excel and save as .xlsx, then the date/time imports as expected.&lt;/P&gt;&lt;P&gt;R_&lt;/P&gt;</description>
      <pubDate>Wed, 02 Mar 2022 15:49:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/csv-input-not-including-time-with-date/m-p/1149631#M52235</guid>
      <dc:creator>RhettZufelt</dc:creator>
      <dc:date>2022-03-02T15:49:59Z</dc:date>
    </item>
    <item>
      <title>Re: CSV input not including time with date</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/csv-input-not-including-time-with-date/m-p/1149652#M52241</link>
      <description>&lt;P&gt;Sure,&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the original there would be a latitude and longitude that I've removed to satisfy our data privacy standards.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Mar 2022 16:11:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/csv-input-not-including-time-with-date/m-p/1149652#M52241</guid>
      <dc:creator>ccowin_odfw</dc:creator>
      <dc:date>2022-03-02T16:11:44Z</dc:date>
    </item>
    <item>
      <title>Re: CSV input not including time with date</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/csv-input-not-including-time-with-date/m-p/1149691#M52246</link>
      <description>&lt;P&gt;I see the same issue until I add a column title for the missing column, and remove the invalid column names (spaces, special characters, etc).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I ensure ALL the fields have a name, and that name is a single word, then it converts to table as expected with date and time in the fields.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RhettZufelt_0-1646239679948.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/35370iF549ECFC569FCB40/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RhettZufelt_0-1646239679948.png" alt="RhettZufelt_0-1646239679948.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you run the Table to Table GP tool in Pro, it appears as if it "fixes" these issues on the fly.&amp;nbsp; With the python code, however, I had to fix the column name issues before it worked.&lt;/P&gt;&lt;P&gt;R_&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Mar 2022 16:49:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/csv-input-not-including-time-with-date/m-p/1149691#M52246</guid>
      <dc:creator>RhettZufelt</dc:creator>
      <dc:date>2022-03-02T16:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: CSV input not including time with date</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/csv-input-not-including-time-with-date/m-p/1149701#M52248</link>
      <description>&lt;P&gt;Awesome will give that a shot!&lt;/P&gt;</description>
      <pubDate>Wed, 02 Mar 2022 16:57:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/csv-input-not-including-time-with-date/m-p/1149701#M52248</guid>
      <dc:creator>ccowin_odfw</dc:creator>
      <dc:date>2022-03-02T16:57:15Z</dc:date>
    </item>
  </channel>
</rss>

