<?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 datetime format python in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/arcgis-datetime-format-python/m-p/1107087#M62627</link>
    <description>&lt;P&gt;Are you importing the&amp;nbsp;&lt;SPAN&gt;time_reformat&amp;nbsp;value into a date field in Esri? In my experience, you can use the raw datetime object in a date field, no need to reformat it.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 13 Oct 2021 14:44:03 GMT</pubDate>
    <dc:creator>BlakeTerhune</dc:creator>
    <dc:date>2021-10-13T14:44:03Z</dc:date>
    <item>
      <title>Arcgis datetime format python</title>
      <link>https://community.esri.com/t5/python-questions/arcgis-datetime-format-python/m-p/1106932#M62624</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; I use python to export my data into arcgis online. I am struggling with the time column. Every time I export, the time column is still registering as string. I am quite lost. Can anyone help? I would appreciate it. My code is below for one time instance is below:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;time_data =&amp;nbsp;&lt;SPAN&gt;datetime.datetime(2021, 4, 22, 12, 1)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; time_reformat =&amp;nbsp;datetime.datetime.strftime(time_data,'%Y/%m/%d %H:%M:%S')&lt;/P&gt;&lt;P&gt;The variable tim&lt;/P&gt;</description>
      <pubDate>Wed, 13 Oct 2021 03:08:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcgis-datetime-format-python/m-p/1106932#M62624</guid>
      <dc:creator>GarretVo</dc:creator>
      <dc:date>2021-10-13T03:08:22Z</dc:date>
    </item>
    <item>
      <title>Re: Arcgis datetime format python</title>
      <link>https://community.esri.com/t5/python-questions/arcgis-datetime-format-python/m-p/1106934#M62625</link>
      <description>&lt;P&gt;Your time_data variable is a datetime object and the&amp;nbsp;time_reformat variable is a string object.&lt;/P&gt;&lt;P&gt;Is this not what you are expecting?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Oct 2021 03:27:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcgis-datetime-format-python/m-p/1106934#M62625</guid>
      <dc:creator>GaryStaker1</dc:creator>
      <dc:date>2021-10-13T03:27:42Z</dc:date>
    </item>
    <item>
      <title>Re: Arcgis datetime format python</title>
      <link>https://community.esri.com/t5/python-questions/arcgis-datetime-format-python/m-p/1107071#M62626</link>
      <description>&lt;P&gt;Hi Garry,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;I expect the time_reformat variable is a string, but&amp;nbsp; with the format as described the following link:&lt;/P&gt;&lt;P&gt;&lt;A href="https://doc.arcgis.com/en/arcgis-online/manage-data/work-with-date-fields.htm" target="_blank"&gt;https://doc.arcgis.com/en/arcgis-online/manage-data/work-with-date-fields.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;the time_reformat should become date type when the data is imported into ESRI. Can you please let me know what I got wrong?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Oct 2021 13:57:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcgis-datetime-format-python/m-p/1107071#M62626</guid>
      <dc:creator>GarretVo</dc:creator>
      <dc:date>2021-10-13T13:57:38Z</dc:date>
    </item>
    <item>
      <title>Re: Arcgis datetime format python</title>
      <link>https://community.esri.com/t5/python-questions/arcgis-datetime-format-python/m-p/1107087#M62627</link>
      <description>&lt;P&gt;Are you importing the&amp;nbsp;&lt;SPAN&gt;time_reformat&amp;nbsp;value into a date field in Esri? In my experience, you can use the raw datetime object in a date field, no need to reformat it.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Oct 2021 14:44:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcgis-datetime-format-python/m-p/1107087#M62627</guid>
      <dc:creator>BlakeTerhune</dc:creator>
      <dc:date>2021-10-13T14:44:03Z</dc:date>
    </item>
    <item>
      <title>Re: Arcgis datetime format python</title>
      <link>https://community.esri.com/t5/python-questions/arcgis-datetime-format-python/m-p/1107124#M62628</link>
      <description>&lt;P&gt;Yes I am. Correct me if I am wrong. Basically, I can put the variable time_data into date field without any issues. Can you please let me know? Thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Oct 2021 15:47:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcgis-datetime-format-python/m-p/1107124#M62628</guid>
      <dc:creator>GarretVo</dc:creator>
      <dc:date>2021-10-13T15:47:02Z</dc:date>
    </item>
    <item>
      <title>Re: Arcgis datetime format python</title>
      <link>https://community.esri.com/t5/python-questions/arcgis-datetime-format-python/m-p/1107272#M62629</link>
      <description>&lt;P&gt;Correct. Are you using an insert cursor?&lt;/P&gt;</description>
      <pubDate>Wed, 13 Oct 2021 19:43:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcgis-datetime-format-python/m-p/1107272#M62629</guid>
      <dc:creator>BlakeTerhune</dc:creator>
      <dc:date>2021-10-13T19:43:27Z</dc:date>
    </item>
    <item>
      <title>Re: Arcgis datetime format python</title>
      <link>https://community.esri.com/t5/python-questions/arcgis-datetime-format-python/m-p/1108421#M62667</link>
      <description>&lt;P&gt;Hi all. I figure it out. Thank you for all your help. I just have one more question. When I export my data to arcgis online, the time is displayed as&amp;nbsp; 8 hour ahead. Do you know how to change that to the original time in my data ? Thanks&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, in my data, the time column is 4/22/2021 12:01:00. When the data comes into arcgis, the time column is 4/22/2021 8:00 PM. I want the time to be 12:01:00. Do you guys have any ideas? Thanks&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Oct 2021 14:39:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcgis-datetime-format-python/m-p/1108421#M62667</guid>
      <dc:creator>GarretVo</dc:creator>
      <dc:date>2021-10-18T14:39:34Z</dc:date>
    </item>
    <item>
      <title>Re: Arcgis datetime format python</title>
      <link>https://community.esri.com/t5/python-questions/arcgis-datetime-format-python/m-p/1108460#M62668</link>
      <description>&lt;P&gt;&lt;A href="https://doc.arcgis.com/en/arcgis-online/manage-data/work-with-date-fields.htm#ESRI_SECTION1_BCC2E215ABAE4997983D065D5CF66FA1" target="_blank"&gt;Work with date fields—ArcGIS Online Help | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;All dates in ArcGIS Online are assumed to be UTC. You might need to convert the time before you upload the data.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Oct 2021 16:02:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcgis-datetime-format-python/m-p/1108460#M62668</guid>
      <dc:creator>BlakeTerhune</dc:creator>
      <dc:date>2021-10-18T16:02:43Z</dc:date>
    </item>
  </channel>
</rss>

