<?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 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/1149382#M52197</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:38 GMT</pubDate>
    <dc:creator>ccowin_odfw</dc:creator>
    <dc:date>2022-03-02T00:20:38Z</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/1149382#M52197</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:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/csv-input-not-including-time-with-date/m-p/1149382#M52197</guid>
      <dc:creator>ccowin_odfw</dc:creator>
      <dc:date>2022-03-02T00:20:38Z</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/1149422#M52201</link>
      <description>&lt;P&gt;a related thread with some suggestions&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/arcgis-pro-questions/create-datetime-from-separate-date-and-time-fields/m-p/1031854#M38031" target="_blank"&gt;Solved: Create DateTime from separate Date and Time fields - Esri Community&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Mar 2022 03:26:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/csv-input-not-including-time-with-date/m-p/1149422#M52201</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2022-03-02T03:26:35Z</dc:date>
    </item>
  </channel>
</rss>

