<?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 import from excel in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Date-import-from-excel/m-p/676523#M86314</link>
    <description>&lt;P&gt;Hi Steffen,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You don't mention what operating system (Windows or Mac), version of JMP or language you are running under for the various machines.&amp;nbsp; Are they different?&amp;nbsp; All of these factors can affect how the date data is interpreted.&amp;nbsp; I would suggest contacting JMP tech support.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Brian Corcoran&lt;/P&gt;
&lt;P&gt;JMP Development&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 11 Sep 2023 17:00:30 GMT</pubDate>
    <dc:creator>briancorcoran</dc:creator>
    <dc:date>2023-09-11T17:00:30Z</dc:date>
    <item>
      <title>Date import from excel</title>
      <link>https://community.jmp.com/t5/Discussions/Date-import-from-excel/m-p/676318#M86301</link>
      <description>&lt;P&gt;I have imported the following data from excel to JMP on several different computers using the same script&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;30/11/2022 12:15&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;14/12/2022 12:15&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;12/12/2022 12:15&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;11/01/2023 12:15&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;11/01/2023 12:15&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On some computers, JMP gives the following:&lt;/P&gt;&lt;P&gt;30.11.2022 12:15&lt;BR /&gt;14.12.2022 12:15&lt;BR /&gt;12.12.2022 12:15&lt;BR /&gt;11.01.2023 12:15&lt;BR /&gt;11.01.2023 12:15&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;While others produce this results:&lt;/P&gt;&lt;P&gt;44895,5104166667&lt;BR /&gt;44909,5104166667&lt;BR /&gt;44907,5104166667&lt;BR /&gt;44937,5104166667&lt;BR /&gt;44937,5104166667&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And I am not able to convert these numbers back to the correct dates in JMP. Any idea why this is happening and what to do to avoid it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Sep 2023 19:58:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Date-import-from-excel/m-p/676318#M86301</guid>
      <dc:creator>Steffen_Bugge</dc:creator>
      <dc:date>2023-09-15T19:58:25Z</dc:date>
    </item>
    <item>
      <title>Re: Date import from excel</title>
      <link>https://community.jmp.com/t5/Discussions/Date-import-from-excel/m-p/676523#M86314</link>
      <description>&lt;P&gt;Hi Steffen,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You don't mention what operating system (Windows or Mac), version of JMP or language you are running under for the various machines.&amp;nbsp; Are they different?&amp;nbsp; All of these factors can affect how the date data is interpreted.&amp;nbsp; I would suggest contacting JMP tech support.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Brian Corcoran&lt;/P&gt;
&lt;P&gt;JMP Development&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2023 17:00:30 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Date-import-from-excel/m-p/676523#M86314</guid>
      <dc:creator>briancorcoran</dc:creator>
      <dc:date>2023-09-11T17:00:30Z</dc:date>
    </item>
    <item>
      <title>Re: Date import from excel</title>
      <link>https://community.jmp.com/t5/Discussions/Date-import-from-excel/m-p/676589#M86322</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/3022"&gt;@briancorcoran&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;All machines use Windows 10 and JMP 17.1.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will reach out to tech support, thanks!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2023 20:39:19 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Date-import-from-excel/m-p/676589#M86322</guid>
      <dc:creator>Steffen_Bugge</dc:creator>
      <dc:date>2023-09-11T20:39:19Z</dc:date>
    </item>
    <item>
      <title>Re: Date import from excel</title>
      <link>https://community.jmp.com/t5/Discussions/Date-import-from-excel/m-p/678433#M86475</link>
      <description>&lt;P&gt;BTW, the second set of results is likely correct. JMP represents date and time values as the number of seconds since midnight on January 1, 1904. The second set didn't change the Format attribute for that data column. Select Cols &amp;gt; Column Info and apply a date format to see if the values are correct. Your script can apply this format automatically after you import the data.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Sep 2023 13:29:39 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Date-import-from-excel/m-p/678433#M86475</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2023-09-16T13:29:39Z</dc:date>
    </item>
    <item>
      <title>Re: Date import from excel</title>
      <link>https://community.jmp.com/t5/Discussions/Date-import-from-excel/m-p/679157#M86534</link>
      <description>&lt;P&gt;Try this one if it helps.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.jmp.com/t5/Discussions/Convert-Date-after-Import-file-from-Excel-Issue/m-p/653497" target="_blank"&gt;https://community.jmp.com/t5/Discussions/Convert-Date-after-Import-file-from-Excel-Issue/m-p/653497&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Sep 2023 04:01:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Date-import-from-excel/m-p/679157#M86534</guid>
      <dc:creator>WebDesignesCrow</dc:creator>
      <dc:date>2023-09-19T04:01:07Z</dc:date>
    </item>
    <item>
      <title>Re: Date import from excel</title>
      <link>https://community.jmp.com/t5/Discussions/Date-import-from-excel/m-p/680735#M86646</link>
      <description>&lt;P&gt;Thanks for the input&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/5358"&gt;@Mark_Bailey&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;When changing to a date format, this is the result:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;01.01.1904 12:28&lt;BR /&gt;01.01.1904 12:28&lt;BR /&gt;01.01.1904 12:28&lt;BR /&gt;01.01.1904 12:28&lt;BR /&gt;01.01.1904 12:28&lt;/P&gt;</description>
      <pubDate>Sat, 23 Sep 2023 06:15:19 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Date-import-from-excel/m-p/680735#M86646</guid>
      <dc:creator>Steffen_Bugge</dc:creator>
      <dc:date>2023-09-23T06:15:19Z</dc:date>
    </item>
    <item>
      <title>Re: Date import from excel</title>
      <link>https://community.jmp.com/t5/Discussions/Date-import-from-excel/m-p/680796#M86650</link>
      <description>&lt;P&gt;&lt;A href="https://support.microsoft.com/en-au/office/datevalue-function-df8b07d4-7761-4a93-bc33-b7471bbff252" target="_blank" rel="noopener"&gt; DATEVALUE function (support.microsoft.com)&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Excel stores dates as sequential serial numbers so that they can be used in calculations. By default, January 1, 1900 is serial number 1, and January 1, 2008 is serial number 39448 because it is 39,447 days after January 1, 1900.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Excel also has a nice feature where it assumes that 1900 is a leap year which might affect your calculations if you try to perform the conversion by hand &lt;A href="https://learn.microsoft.com/en-us/office/troubleshoot/excel/wrongly-assumes-1900-is-leap-year" target="_blank" rel="noopener"&gt;Excel incorrectly assumes that the year 1900 is a leap year&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I had to guess the different computers are using different date (or time) settings (either in JMP and/or Windows). If you are able to load those dates as characters, you might be able to fix them before they break&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1695487640877.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/56949iDB82E435EB7DCDBE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1695487640877.png" alt="jthi_0-1695487640877.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or something this might or might not work&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;excel_datetime = 44895.5104166667;
As date(In Days(excel_datetime) + Date DMY(30, 12, 1899));&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 23 Sep 2023 16:58:58 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Date-import-from-excel/m-p/680796#M86650</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2023-09-23T16:58:58Z</dc:date>
    </item>
    <item>
      <title>Re: Date import from excel</title>
      <link>https://community.jmp.com/t5/Discussions/Date-import-from-excel/m-p/681000#M86663</link>
      <description>&lt;P&gt;The second set of results appears to be the number of seconds since midnight. The date seems to be lost. It appears to be a duration instead of a date and time.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Sep 2023 13:45:19 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Date-import-from-excel/m-p/681000#M86663</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2023-09-25T13:45:19Z</dc:date>
    </item>
    <item>
      <title>Re: Date import from excel</title>
      <link>https://community.jmp.com/t5/Discussions/Date-import-from-excel/m-p/681278#M86683</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/14366"&gt;@jthi&lt;/a&gt;! Spot on!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2023 13:26:05 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Date-import-from-excel/m-p/681278#M86683</guid>
      <dc:creator>Steffen_Bugge</dc:creator>
      <dc:date>2023-09-26T13:26:05Z</dc:date>
    </item>
  </channel>
</rss>

