<?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 Arcpy da insertcursor and date time fields in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/arcpy-da-insertcursor-and-date-time-fields/m-p/279229#M16051</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i need to add new rows to&amp;nbsp;a table in a file geodatabase using python (da.insertcursor). One of the fields that I am &amp;nbsp;adding data to is a datetime. The insert operation functions correctly except for the fact that the time component is always omitted in the resulting datetime firks. I understand that shape files only store dates but that this doesn't apply to file geodatabases. I verified this by manually adding an entry in ArcGIS with a time component; this worked fine. I have checked the datetime variable that I create and pass in python and it includes all data as expected. Has anyone else had trouble with this? Is there a workaround?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Oct 2016 21:14:26 GMT</pubDate>
    <dc:creator>DeanMcGowan</dc:creator>
    <dc:date>2016-10-19T21:14:26Z</dc:date>
    <item>
      <title>Arcpy da insertcursor and date time fields</title>
      <link>https://community.esri.com/t5/data-management-questions/arcpy-da-insertcursor-and-date-time-fields/m-p/279229#M16051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i need to add new rows to&amp;nbsp;a table in a file geodatabase using python (da.insertcursor). One of the fields that I am &amp;nbsp;adding data to is a datetime. The insert operation functions correctly except for the fact that the time component is always omitted in the resulting datetime firks. I understand that shape files only store dates but that this doesn't apply to file geodatabases. I verified this by manually adding an entry in ArcGIS with a time component; this worked fine. I have checked the datetime variable that I create and pass in python and it includes all data as expected. Has anyone else had trouble with this? Is there a workaround?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2016 21:14:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/arcpy-da-insertcursor-and-date-time-fields/m-p/279229#M16051</guid>
      <dc:creator>DeanMcGowan</dc:creator>
      <dc:date>2016-10-19T21:14:26Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy da insertcursor and date time fields</title>
      <link>https://community.esri.com/t5/data-management-questions/arcpy-da-insertcursor-and-date-time-fields/m-p/279230#M16052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is a working example in &lt;A _jive_internal="true" href="https://community.esri.com/thread/184013-calculate-date-field"&gt;this thread&lt;/A&gt;. The main trick is to use &lt;A href="https://docs.python.org/2/library/datetime.html#strftime-and-strptime-behavior"&gt;datetime.datetime.strptime()&lt;/A&gt;, but it sounds like you've already correctly made a datetime object. Can you post the relevant code?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2016 21:21:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/arcpy-da-insertcursor-and-date-time-fields/m-p/279230#M16052</guid>
      <dc:creator>DarrenWiens2</dc:creator>
      <dc:date>2016-10-19T21:21:02Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy da insertcursor and date time fields</title>
      <link>https://community.esri.com/t5/data-management-questions/arcpy-da-insertcursor-and-date-time-fields/m-p/279231#M16053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the quick help. Using the link you posted I was able to get things running! Now I just have to wait while 72mil rows are added...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2016 07:12:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/arcpy-da-insertcursor-and-date-time-fields/m-p/279231#M16053</guid>
      <dc:creator>DeanMcGowan</dc:creator>
      <dc:date>2016-10-20T07:12:09Z</dc:date>
    </item>
  </channel>
</rss>

