<?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 Help with Datetime Format in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/help-with-datetime-format/m-p/590305#M46283</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm having a difficult time importing some .csv files into a file geodatabase and any advice would be greatly appreciated.&amp;nbsp; The files I'm having trouble with contain a field with timestamps formatted as mm/dd/yyyy hh:mm (ex 10/13/2013 18:34).&amp;nbsp; When adding the file to ArcMap via the Add Data button I can see the values just fine, however if I try to import the file through a python script the resulting field contains &amp;lt;Null&amp;gt; values.&amp;nbsp; So far I have tried the following without success:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;CopyRows_management()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;TableToTable_conversion()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;MakeTableView_management()&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any suggestions?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Nick&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Oct 2013 21:13:06 GMT</pubDate>
    <dc:creator>NickJacob</dc:creator>
    <dc:date>2013-10-24T21:13:06Z</dc:date>
    <item>
      <title>Help with Datetime Format</title>
      <link>https://community.esri.com/t5/python-questions/help-with-datetime-format/m-p/590305#M46283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm having a difficult time importing some .csv files into a file geodatabase and any advice would be greatly appreciated.&amp;nbsp; The files I'm having trouble with contain a field with timestamps formatted as mm/dd/yyyy hh:mm (ex 10/13/2013 18:34).&amp;nbsp; When adding the file to ArcMap via the Add Data button I can see the values just fine, however if I try to import the file through a python script the resulting field contains &amp;lt;Null&amp;gt; values.&amp;nbsp; So far I have tried the following without success:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;CopyRows_management()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;TableToTable_conversion()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;MakeTableView_management()&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any suggestions?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Nick&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Oct 2013 21:13:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/help-with-datetime-format/m-p/590305#M46283</guid>
      <dc:creator>NickJacob</dc:creator>
      <dc:date>2013-10-24T21:13:06Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Datetime Format</title>
      <link>https://community.esri.com/t5/python-questions/help-with-datetime-format/m-p/590306#M46284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Nick,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What version of ArcGIS Desktop are you using?&amp;nbsp; I could not reproduce this with 10.2.&amp;nbsp; Have you tried simply import the table outside of a script?&amp;nbsp; For example, right-click on the File Geodatabase &amp;gt; Import &amp;gt; Table (single).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Oct 2013 10:14:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/help-with-datetime-format/m-p/590306#M46284</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2013-10-25T10:14:48Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Datetime Format</title>
      <link>https://community.esri.com/t5/python-questions/help-with-datetime-format/m-p/590307#M46285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you for replying Jake!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using ArcGIS for Desktop 10.2 and manually importing does work.&amp;nbsp; The catch is that I have a python script that runs overnight and I'm not around to work with the .csv file by hand.&amp;nbsp; After getting the table into my scratch gdb, the field looks like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;| Timestamp |&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;--------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;Null&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;Null&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;Null&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;Null&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm sure I'm missing something simple with ArcPy... just haven't figured it out yet.&amp;nbsp; Reworking the file via the csv module seems like an option, but also seems overkill.&amp;nbsp; Any other thoughts?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- Nick&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Oct 2013 12:49:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/help-with-datetime-format/m-p/590307#M46285</guid>
      <dc:creator>NickJacob</dc:creator>
      <dc:date>2013-10-25T12:49:54Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Datetime Format</title>
      <link>https://community.esri.com/t5/python-questions/help-with-datetime-format/m-p/590308#M46286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Can you post the script you are running?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Oct 2013 13:01:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/help-with-datetime-format/m-p/590308#M46286</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2013-10-25T13:01:36Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Datetime Format</title>
      <link>https://community.esri.com/t5/python-questions/help-with-datetime-format/m-p/590309#M46287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Big thanks to both JSkinn3 and davidisraelitt,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Using a FieldMappings object worked really well.&amp;nbsp; I have avoided them in the past, but now that I have a better grasp of what they can do, I can really see the benefit.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Nov 2013 16:43:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/help-with-datetime-format/m-p/590309#M46287</guid>
      <dc:creator>NickJacob</dc:creator>
      <dc:date>2013-11-04T16:43:39Z</dc:date>
    </item>
  </channel>
</rss>

