<?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: Date and Time format from SQLite Database in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/date-and-time-format-from-sqlite-database/m-p/1221503#M45311</link>
    <description>&lt;P&gt;Edit -- here is the python script I used to solve this issue, where x is the long integer being output:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;from datetime import datetime&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;d = int(x/1000)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;date = datetime.utcfromtimestamp(d).strftime('%m/%d/%Y %H:%M:%S')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 13 Oct 2022 13:21:34 GMT</pubDate>
    <dc:creator>MaryGraceMcClellan</dc:creator>
    <dc:date>2022-10-13T13:21:34Z</dc:date>
    <item>
      <title>Date and Time format from SQLite Database</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/date-and-time-format-from-sqlite-database/m-p/1221249#M45292</link>
      <description>&lt;P&gt;I have survey data that was exported from a SQLite database into a CSV so it could be appended to the survey dataset. The process works okay, but I&amp;nbsp;&amp;nbsp;am unsure how to convert the time and date fields. They are not datetime types, one is specifically a date field, and the other is time. An example of the data is below:&amp;nbsp;&lt;/P&gt;&lt;P&gt;"Collect_Date": 1657987200000&lt;BR /&gt;"Collect_Time": 1657987800000&lt;/P&gt;&lt;P&gt;Has anyone converted from this format before? I thought it might be UTC or epoch, but the times seem off when I run them through an online converter.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Oct 2022 19:16:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/date-and-time-format-from-sqlite-database/m-p/1221249#M45292</guid>
      <dc:creator>MaryGraceMcClellan</dc:creator>
      <dc:date>2022-10-12T19:16:44Z</dc:date>
    </item>
    <item>
      <title>Re: Date and Time format from SQLite Database</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/date-and-time-format-from-sqlite-database/m-p/1221503#M45311</link>
      <description>&lt;P&gt;Edit -- here is the python script I used to solve this issue, where x is the long integer being output:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;from datetime import datetime&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;d = int(x/1000)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;date = datetime.utcfromtimestamp(d).strftime('%m/%d/%Y %H:%M:%S')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2022 13:21:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/date-and-time-format-from-sqlite-database/m-p/1221503#M45311</guid>
      <dc:creator>MaryGraceMcClellan</dc:creator>
      <dc:date>2022-10-13T13:21:34Z</dc:date>
    </item>
  </channel>
</rss>

