<?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 Dealing with &amp;quot;Time&amp;quot; formats from EXCEL to ESRI in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/dealing-with-quot-time-quot-formats-from-excel-to/m-p/246672#M14035</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;GeoNet Community,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a feeling this is a simple fix but i have spent all morning trying to convert a text field containing a date into a date field.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In Excel you change the format of the field and it changes how the date is displayed. To make it "permanent" you either have to convert the time value into a serial code or I used =A1 in the neighboring field to lock in what ever format i had selected into a new field.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now when trying to get this into ESRI it becomes very tricky. When i use "Add XY data" and open the "Event" layer I can open the table and the date fields all display the way it looks in EXCEL, as soon as I export the event layer to a new Feature Class it changes the field into the "Date" format and cuts off the HH:mm:ss&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To preserve the loss of the HH:mm:ss I created a separate field for year, month, day, hour, minute, and second in Excel as text columns and these are preserved in the new feature class. This is a very time consuming process in Excel and it seems there should be an easier way.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using the "Convert Time Field" Tool:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The original date text field looks like the following:&lt;/P&gt;&lt;P&gt;6/15/2011 7:58:42 and it's definitely a string column.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I use the tool I went to custom format and entered several options and non of them worked. I tried:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;MM/dd/yyyy HH:mm:ss&lt;/P&gt;&lt;P&gt;m/dd/yyyy HH:mm:ss&lt;/P&gt;&lt;P&gt;m/dd/yyyy h:mm:ss&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I converted all single digit values into 2 digit values and I used the following VBscript expression to use the separate text columns and combine them into a single text column in ESRI acceptable format.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TimeText2 = [YEAR]&amp;amp;"/"&amp;amp; [MONTH2]&amp;amp;"/"&amp;amp; [DAY]&amp;amp;" "&amp;amp; [HOUR2]&amp;amp;":"&amp;amp; [MIN2]&amp;amp;":"&amp;amp; [SEC2]&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I ran the tool again and the new field only showed the Year\month\day&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is going on?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help on this is much appreciated! I'm using ArcMAP 10.0 service pack 5 build 4400&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Feb 2015 17:21:33 GMT</pubDate>
    <dc:creator>DanielAmrine</dc:creator>
    <dc:date>2015-02-10T17:21:33Z</dc:date>
    <item>
      <title>Dealing with "Time" formats from EXCEL to ESRI</title>
      <link>https://community.esri.com/t5/data-management-questions/dealing-with-quot-time-quot-formats-from-excel-to/m-p/246672#M14035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;GeoNet Community,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a feeling this is a simple fix but i have spent all morning trying to convert a text field containing a date into a date field.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In Excel you change the format of the field and it changes how the date is displayed. To make it "permanent" you either have to convert the time value into a serial code or I used =A1 in the neighboring field to lock in what ever format i had selected into a new field.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now when trying to get this into ESRI it becomes very tricky. When i use "Add XY data" and open the "Event" layer I can open the table and the date fields all display the way it looks in EXCEL, as soon as I export the event layer to a new Feature Class it changes the field into the "Date" format and cuts off the HH:mm:ss&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To preserve the loss of the HH:mm:ss I created a separate field for year, month, day, hour, minute, and second in Excel as text columns and these are preserved in the new feature class. This is a very time consuming process in Excel and it seems there should be an easier way.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using the "Convert Time Field" Tool:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The original date text field looks like the following:&lt;/P&gt;&lt;P&gt;6/15/2011 7:58:42 and it's definitely a string column.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I use the tool I went to custom format and entered several options and non of them worked. I tried:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;MM/dd/yyyy HH:mm:ss&lt;/P&gt;&lt;P&gt;m/dd/yyyy HH:mm:ss&lt;/P&gt;&lt;P&gt;m/dd/yyyy h:mm:ss&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I converted all single digit values into 2 digit values and I used the following VBscript expression to use the separate text columns and combine them into a single text column in ESRI acceptable format.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TimeText2 = [YEAR]&amp;amp;"/"&amp;amp; [MONTH2]&amp;amp;"/"&amp;amp; [DAY]&amp;amp;" "&amp;amp; [HOUR2]&amp;amp;":"&amp;amp; [MIN2]&amp;amp;":"&amp;amp; [SEC2]&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I ran the tool again and the new field only showed the Year\month\day&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is going on?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help on this is much appreciated! I'm using ArcMAP 10.0 service pack 5 build 4400&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Feb 2015 17:21:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/dealing-with-quot-time-quot-formats-from-excel-to/m-p/246672#M14035</guid>
      <dc:creator>DanielAmrine</dc:creator>
      <dc:date>2015-02-10T17:21:33Z</dc:date>
    </item>
    <item>
      <title>Re: Dealing with "Time" formats from EXCEL to ESRI</title>
      <link>https://community.esri.com/t5/data-management-questions/dealing-with-quot-time-quot-formats-from-excel-to/m-p/246673#M14036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What data format are you using?&amp;nbsp; dBase (.dbf) only supports day resolution, so that would&lt;/P&gt;&lt;P&gt;be appropriate for shapefile.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- V&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Mar 2015 00:22:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/dealing-with-quot-time-quot-formats-from-excel-to/m-p/246673#M14036</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2015-03-27T00:22:13Z</dc:date>
    </item>
    <item>
      <title>Re: Dealing with "Time" formats from EXCEL to ESRI</title>
      <link>https://community.esri.com/t5/data-management-questions/dealing-with-quot-time-quot-formats-from-excel-to/m-p/246674#M14037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So in the .dbf you can only show it up to days? What about a feature class in a geodatabse...I suppose it still a .dbf&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for responding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dan &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Mar 2015 19:07:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/dealing-with-quot-time-quot-formats-from-excel-to/m-p/246674#M14037</guid>
      <dc:creator>DanielAmrine</dc:creator>
      <dc:date>2015-03-31T19:07:22Z</dc:date>
    </item>
    <item>
      <title>Re: Dealing with "Time" formats from EXCEL to ESRI</title>
      <link>https://community.esri.com/t5/data-management-questions/dealing-with-quot-time-quot-formats-from-excel-to/m-p/246675#M14038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are several different "geodatabase" formats (none of which are dBase-based), and all of them have a higher resolution (seconds) than dBase (days).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- V&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Mar 2015 19:14:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/dealing-with-quot-time-quot-formats-from-excel-to/m-p/246675#M14038</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2015-03-31T19:14:49Z</dc:date>
    </item>
  </channel>
</rss>

