<?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: Force import format of Excel date column in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Force-import-format-of-Excel-date-column/m-p/280569#M54349</link>
    <description>&lt;P&gt;I'm using Excel 365 build 1908, so a fairly new version.&amp;nbsp; What version of JMP are you using?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Brian&lt;/P&gt;</description>
    <pubDate>Mon, 20 Jul 2020 18:55:03 GMT</pubDate>
    <dc:creator>briancorcoran</dc:creator>
    <dc:date>2020-07-20T18:55:03Z</dc:date>
    <item>
      <title>Force import format of Excel date column</title>
      <link>https://community.jmp.com/t5/Discussions/Force-import-format-of-Excel-date-column/m-p/193076#M41304</link>
      <description>&lt;P&gt;Hi JMP Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I'm looking for help with forcing a date format import using the Excel Import Wizard via JSL. I'm trying to import data that is in only two columns in an Excel file, one date, one data, it looks like the following:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Snap1.png" style="width: 175px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/16889i3F36EB7C0B22F601/image-size/large?v=v2&amp;amp;px=999" role="button" title="Snap1.png" alt="Snap1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; The problem I have is at the transition from the dates 12.02.2019 to 13.02.2019 (marked by red at the left side). For some reason, JMP is reading the date values from the start to the last 12.02.2019 value as dd.mm.yyyy format, but then switches at 13.02.2019 to reading dates as mm.dd.yyyy format. When I go into the Excel file and review the formatting for the cells, they're identical. I can't figure out why JMP is suddenly switching. When it makes this switch, it leaves the date cells empty in the JMP table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; If I import the data in two different blocks, those from the start to the last dd.mm.yyyy format, and a second one for the others, it reads each date correctly, however the Column Info for the two different dates are formatted differently and are incompatible with each other. If I try concatenating the two sub-sets, it just switches the day/month of whichever table I concatenate to.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I've also tried changing several of the toggle options in JMP preferences to try and force system or JMP settings, but all were unsuccessful.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; If I can import the date as a character, I can modify things accordingly and then switch it back to a continuous data type, and it should be all OK. The only problem is I am not sure how to force this, or if this is the best way.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; As with most automation attempts, I STRONGLY prefer to not go in and edit every Excel sheet or file. I want to have JMP do this via JSL script.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; The JSL code I use to import is:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Open(
	"file_location\file.xlsx",
	Worksheets( "Sheet 1" ),
	Use for all sheets( 1 ),
	Concatenate Worksheets( 0 ),
	Create Concatenation Column( 0 ),
	Worksheet Settings(
		1,
		Has Column Headers( 1 ),
		Number of Rows in Headers( 1 ),
		Headers Start on Row( 1 ),
		Data Starts on Row( 2 ),
		Data Starts on Column( 15 ),
		Data Ends on Row( 0 ),
		Data Ends on Column( 16 ),
		Replicated Spanned Rows( 1 ),
		Replicated Spanned Headers( 0 ),
		Suppress Hidden Rows( 1 ),
		Suppress Hidden Columns( 1 ),
		Suppress Empty Columns( 1 ),
		Treat as Hierarchy( 0 ),
		Multiple Series Stack( 0 ),
		Import Cell Colors( 0 ),
		Limit Column Detect( 0 ),
		Column Separator String( "-" )
	)
)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp; Is it related to the "Limit Column Detect(0)" option? I can't find any documentation on this and what it does.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; This issue is similar to one posted by&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/8144"&gt;@ghartel&lt;/a&gt;&amp;nbsp;back in May of 2017 (&lt;A href="https://community.jmp.com/t5/Discussions/Excel-Import-Date-Format/td-p/16619" target="_blank"&gt;https://community.jmp.com/t5/Discussions/Excel-Import-Date-Format/td-p/16619&lt;/A&gt;), which didn't get a direct solution to their specific issue, at least as far as I can tell.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Any help is much appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;DS&lt;/P&gt;</description>
      <pubDate>Mon, 15 Apr 2019 20:42:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Force-import-format-of-Excel-date-column/m-p/193076#M41304</guid>
      <dc:creator>SDF1</dc:creator>
      <dc:date>2019-04-15T20:42:27Z</dc:date>
    </item>
    <item>
      <title>Re: Force import format of Excel date column</title>
      <link>https://community.jmp.com/t5/Discussions/Force-import-format-of-Excel-date-column/m-p/193098#M41309</link>
      <description>&lt;P&gt;Hmmmm,&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/12549"&gt;@SDF1&lt;/a&gt;,&amp;nbsp;you might have found a bug.&lt;/P&gt;
&lt;P&gt;The approach I take is to read in the data, let it be a string then convert it. However, if I try to use only the last Data Type() message, I see the same behavior that you described. If I keep the same informat and format statement, then the problem is not seen.&amp;nbsp; Once converted, then set to your chosen format&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names default to here(1);
dt = Open(
	"C:\temp\ExcelDateBlog.xlsx",
	Worksheets( "Sheet1" ),
	Use for all sheets( 0 ),
	Concatenate Worksheets( 0 ),
	Create Concatenation Column( 0 ),
	Worksheet Settings(
		1,
		Has Column Headers( 1 ),
		Number of Rows in Headers( 1 ),
		Headers Start on Row( 1 ),
		Data Starts on Row( 2 ),
		Data Starts on Column( 1 ),
		Data Ends on Row( 0 ),
		Data Ends on Column( 0 ),
		Replicated Spanned Rows( 1 ),
		Replicated Spanned Headers( 0 ),
		Suppress Hidden Rows( 1 ),
		Suppress Hidden Columns( 1 ),
		Suppress Empty Columns( 1 ),
		Treat as Hierarchy( 0 ),
		Multiple Series Stack( 0 ),
		Import Cell Colors( 0 ),
		Limit Column Detect( 0 ),
		Column Separator String( "-" )
	)
);
wait(0); //change to 2 seconds to see that the data is read in as text
dt:Date &amp;lt;&amp;lt; Data Type (Numeric,
		"Continuous",
		Format( "ddmmyyyy", 12 ),
		Input Format( "ddmmyyyy" ));

dt:Date &amp;lt;&amp;lt; Data Type (Numeric,
		"Continuous",
		Format( "m/d/y", 12 ),
		Input Format( "ddmmyyyy" ));



&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Hoppe that helps.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Apr 2019 01:34:43 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Force-import-format-of-Excel-date-column/m-p/193098#M41309</guid>
      <dc:creator>gzmorgan0</dc:creator>
      <dc:date>2019-04-16T01:34:43Z</dc:date>
    </item>
    <item>
      <title>Re: Force import format of Excel date column</title>
      <link>https://community.jmp.com/t5/Discussions/Force-import-format-of-Excel-date-column/m-p/193127#M41318</link>
      <description>&lt;P&gt;The Excel Preview looks at the first 100 rows to determine the data type for the preview, for performance reasons.&amp;nbsp; During the actual import operation, JMP looks at all the rows.&amp;nbsp; If it sees data that leads it to a different conclusion after row 100, it can produce a different result.&amp;nbsp; If you want the Preview to look at all the rows to produce what you will see on import, you can select the "Show all rows" option in the Preview Pane Refresh of the UI.&amp;nbsp; If you want the import to look at only the first 100 rows when reading the data, to produce the behavior of the Preview, you can go to "Advanced Options" in the second pane of the import dialog and select "Limit column type detection".&lt;BR /&gt;&lt;BR /&gt;JMP 15 will introduce the ability to force the numeric formatting types of individual columns to the whatever the user chooses.&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;</description>
      <pubDate>Tue, 16 Apr 2019 11:58:57 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Force-import-format-of-Excel-date-column/m-p/193127#M41318</guid>
      <dc:creator>briancorcoran</dc:creator>
      <dc:date>2019-04-16T11:58:57Z</dc:date>
    </item>
    <item>
      <title>Re: Force import format of Excel date column</title>
      <link>https://community.jmp.com/t5/Discussions/Force-import-format-of-Excel-date-column/m-p/193142#M41321</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;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Thanks for the input. I tried your suggestion, but unfortunately, it did not work. Even in the preview pane when "limiting column detect" and showing all rows, JMP has an issue with reading in the format. It reads in the first 205 rows just fine, it's at row 206 where it switches format for some reason.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; What doesn't make sense is that the formatting within Excel doesn't change from one row to the next. If it did, I can understand why JMP might read them in differently. All cells are formatted as "Date" dd.mm.yyyy in Excel. The same thing happens on the next tab that I'm importing, but at rows 52 to 53. I could understand if there was an issue in the original Excel file generation where the same rows across all tables had some glitch that saved the dates differently, but it's not even at the same location from tab to tab when JMP reads in the data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; The only formatting thing from the Excel side that I see could be that the "type" option in the "date" category starts with an *, see attached image below. But, this should update according to the OS settings. All dates in the column are formatted this way, so if JMP has an issue with one, it should have an issue with all.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I will try&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/70"&gt;@gzmorgan0&lt;/a&gt;'s suggestion for importing and see if that works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; That will be nice to have JMP force certain formatting types during import, especially when it comes to building a JSL code for automating the process.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Snap2.png" style="width: 540px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/16897iF807249D643F42DA/image-size/large?v=v2&amp;amp;px=999" role="button" title="Snap2.png" alt="Snap2.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Apr 2019 13:26:11 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Force-import-format-of-Excel-date-column/m-p/193142#M41321</guid>
      <dc:creator>SDF1</dc:creator>
      <dc:date>2019-04-16T13:26:11Z</dc:date>
    </item>
    <item>
      <title>Re: Force import format of Excel date column</title>
      <link>https://community.jmp.com/t5/Discussions/Force-import-format-of-Excel-date-column/m-p/193190#M41332</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/70"&gt;@gzmorgan0&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Thanks for your thoughts and input. Unfortunately, this approach also doesn't work. The problem stems from JMP misreading the date format before it even imports it. If I run the script or try to do it throught he wizard GUI, JMP misclassifies the dates as either a d.m.y or m.d.y format when it's the other one.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Even modifying your code for different variations in date format doesn't solve the problem. It simply doesn't import the mixed format and only treats one kind or the other as continuous, the others it'll just ignore. The JSL code won't import it as a nominal data type either -- it comes straight in as continuous.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!,&lt;/P&gt;&lt;P&gt;DS&lt;/P&gt;</description>
      <pubDate>Tue, 16 Apr 2019 19:26:29 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Force-import-format-of-Excel-date-column/m-p/193190#M41332</guid>
      <dc:creator>SDF1</dc:creator>
      <dc:date>2019-04-16T19:26:29Z</dc:date>
    </item>
    <item>
      <title>Re: Force import format of Excel date column</title>
      <link>https://community.jmp.com/t5/Discussions/Force-import-format-of-Excel-date-column/m-p/193193#M41335</link>
      <description>&lt;P&gt;Update:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I did a little more digging into the Excel file and the one common thing across all tabs that causes this mistake when I try to import the data is when it reads down the date column and goes from the date 12.02.2019 (12th Feb, 2019) to 13.02.2019 (13th Feb, 2019).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Here's my theory: I think JMP is mixing up the format for the dates before the 12th to after. My original date range is from 02 Jan 2019 to 28 Feb 2019: 02.01.2019 to 28.02.2019.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; As JMP is reading down the date column, it appears to actually be interpreting the date 02.01.2019 as 01 Feb 2019, so when it gets to 12.02.2019, it's actually reading in the date as 02 Dec 2019. As a consequence, when it gets to 13.02.2019 (13 Feb 2019), it doesn't know how to read in the date since there is no 13th month. The column properties in JMP always show it as "continuous" modelying type, "d.m.y" format and "d.m.y" input format. It does this unless I split the import into two sections.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; If I split the import into two different parts, one from 02.01.2019 to 12.02.2019 and then from 13.02.2019 to 28.02.2019, JMP imports the data appropriately and assigns the column format appropriately. I can then concatenate the two into a correct data table. I don't know why it wasn't working in my original post, but it can work this way.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I can also confirm that there is no dependence on the data being correctly imported on what preferences I've set within JMP.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; This is not so conducive to automation since the original file might change the location (row) of this 12th/13th date change. I guess I might have to make it work via the split route, though. If this is a bug in JMP, it would be great if this could be fixed.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Apr 2019 20:23:40 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Force-import-format-of-Excel-date-column/m-p/193193#M41335</guid>
      <dc:creator>SDF1</dc:creator>
      <dc:date>2019-04-16T20:23:40Z</dc:date>
    </item>
    <item>
      <title>Re: Force import format of Excel date column</title>
      <link>https://community.jmp.com/t5/Discussions/Force-import-format-of-Excel-date-column/m-p/193197#M41337</link>
      <description>&lt;P&gt;Hi DS,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;JMP should honor formats that are applied specifically to a column in Excel.&amp;nbsp; Have you gone into Excel and use the Format Cells dialog to explicitly set the column type to Date and then a European format like German d.m.y?&amp;nbsp; In that case JMP should bring the data in correctly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Brian&lt;/P&gt;</description>
      <pubDate>Tue, 16 Apr 2019 20:32:29 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Force-import-format-of-Excel-date-column/m-p/193197#M41337</guid>
      <dc:creator>briancorcoran</dc:creator>
      <dc:date>2019-04-16T20:32:29Z</dc:date>
    </item>
    <item>
      <title>Re: Force import format of Excel date column</title>
      <link>https://community.jmp.com/t5/Discussions/Force-import-format-of-Excel-date-column/m-p/193199#M41338</link>
      <description>&lt;P&gt;Hi Brian (&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/3022"&gt;@briancorcoran&lt;/a&gt;),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Yes, in fact the column is set to "date" with a German style d.m.y. format. Please check a previous post in this thread where I include a screen shot of the Excel column property window and the setting. Even my system setting is like that, see below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!,&lt;/P&gt;&lt;P&gt;DS&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Snap5.png" style="width: 479px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/16902i8B08A588064EB65A/image-size/large?v=v2&amp;amp;px=999" role="button" title="Snap5.png" alt="Snap5.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Apr 2019 20:37:35 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Force-import-format-of-Excel-date-column/m-p/193199#M41338</guid>
      <dc:creator>SDF1</dc:creator>
      <dc:date>2019-04-16T20:37:35Z</dc:date>
    </item>
    <item>
      <title>Re: Force import format of Excel date column</title>
      <link>https://community.jmp.com/t5/Discussions/Force-import-format-of-Excel-date-column/m-p/193200#M41339</link>
      <description>&lt;P&gt;What version of JMP are you using?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Brian&lt;/P&gt;</description>
      <pubDate>Tue, 16 Apr 2019 20:41:55 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Force-import-format-of-Excel-date-column/m-p/193200#M41339</guid>
      <dc:creator>briancorcoran</dc:creator>
      <dc:date>2019-04-16T20:41:55Z</dc:date>
    </item>
    <item>
      <title>Re: Force import format of Excel date column</title>
      <link>https://community.jmp.com/t5/Discussions/Force-import-format-of-Excel-date-column/m-p/193212#M41342</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/3022"&gt;@briancorcoran&lt;/a&gt;, did you see my rely to&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/12549"&gt;@SDF1&lt;/a&gt;&amp;nbsp;?&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;I read in the Excel sheet as text/character&lt;/LI&gt;
&lt;LI&gt;Then sent the column message&lt;/LI&gt;
&lt;/UL&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt:Date &amp;lt;&amp;lt; Data Type (Numeric,
		"Continuous",
		Format( "m/d/y", 12 ),
		Input Format( "ddmmyyyy" ));&lt;/CODE&gt;&lt;/PRE&gt;
&lt;UL&gt;
&lt;LI&gt;The same behavior described by&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/12549"&gt;@SDF1&lt;/a&gt;&amp;nbsp;occurred as well.&amp;nbsp; Ir read the first data then at 13.02.2019 and later the values were empty. This has nothing to do with the Excel sheet: JMP read the Date column as text.&lt;/LI&gt;
&lt;LI&gt;However, if I used the column message below where there are not 2 conversions, the input Format and Format are the same, then the data is converted correctly.&amp;nbsp;&lt;/LI&gt;
&lt;/UL&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt:Date &amp;lt;&amp;lt; Data Type (Numeric,
		"Continuous",
		Format( "ddmmyyyy", 12 ),
		Input Format( "ddmmyyyy" ));&lt;/CODE&gt;&lt;/PRE&gt;
&lt;UL&gt;
&lt;LI&gt;Then use the previous column Data Type() message and the chosen format is okay.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As stated in my response, this was very unexpected behavior and seems to be a bug to me. I am using JMP Pro 14.3&lt;/P&gt;</description>
      <pubDate>Tue, 16 Apr 2019 22:11:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Force-import-format-of-Excel-date-column/m-p/193212#M41342</guid>
      <dc:creator>gzmorgan0</dc:creator>
      <dc:date>2019-04-16T22:11:25Z</dc:date>
    </item>
    <item>
      <title>Re: Force import format of Excel date column</title>
      <link>https://community.jmp.com/t5/Discussions/Force-import-format-of-Excel-date-column/m-p/193214#M41344</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/12549"&gt;@SDF1&lt;/a&gt;, Sorry it did not work for you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Not being from Germany, JMP interpretted the dd.mm.yyyy format as text.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You might try one of these suggestions:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;make that Date column a text column.&lt;/LI&gt;
&lt;LI&gt;save the data as a text file, where the Import Preview, or a scrcipt&amp;nbsp; allows you to set the format and force it to be character.&amp;nbsp;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;I do think there is an internal bug. See my last post to Brian.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Apr 2019 22:19:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Force-import-format-of-Excel-date-column/m-p/193214#M41344</guid>
      <dc:creator>gzmorgan0</dc:creator>
      <dc:date>2019-04-16T22:19:52Z</dc:date>
    </item>
    <item>
      <title>Re: Force import format of Excel date column</title>
      <link>https://community.jmp.com/t5/Discussions/Force-import-format-of-Excel-date-column/m-p/193224#M41346</link>
      <description>Thanks Georgia. I’ve sent this on to investigate as a possible bug.&lt;BR /&gt;&lt;BR /&gt;Brian&lt;BR /&gt;</description>
      <pubDate>Wed, 17 Apr 2019 00:23:28 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Force-import-format-of-Excel-date-column/m-p/193224#M41346</guid>
      <dc:creator>briancorcoran</dc:creator>
      <dc:date>2019-04-17T00:23:28Z</dc:date>
    </item>
    <item>
      <title>Re: Force import format of Excel date column</title>
      <link>https://community.jmp.com/t5/Discussions/Force-import-format-of-Excel-date-column/m-p/193297#M41361</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;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Sorry, I keep forgetting to put my system details at the start of a new post.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;W7 Enterprise, 64-bit&lt;/P&gt;&lt;P&gt;JMP Pro 14.1.0 (and JMP 14.0.0)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I am running an English (US) OS and trying to write some automation code for my German colleagues that are also running W7 Enterprise, but set to a German language for the OS. With other projects like this, I haven't had any issues with the dates being misread. I do have to write two different versions of code though, one for my US colleagues and one for my German colleagues because the normal US OS's read in the dates as text. And as&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/70"&gt;@gzmorgan0&lt;/a&gt;&amp;nbsp;has mentioned, when it's read in as text, handling and converting it is no problem. But, if my German colleagues try to run the JSL scripts that were written to run on US computers, it doesn't work well, so I have to change the code to run correctly on a German language OS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; In order to write code for running on the German computers, I change my regional/local settings in my OS to "German (Germany)". Unfortunately, JMP does not seem to import the date settings correctly from the Excel file I have.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2019 12:19:38 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Force-import-format-of-Excel-date-column/m-p/193297#M41361</guid>
      <dc:creator>SDF1</dc:creator>
      <dc:date>2019-04-17T12:19:38Z</dc:date>
    </item>
    <item>
      <title>Re: Force import format of Excel date column</title>
      <link>https://community.jmp.com/t5/Discussions/Force-import-format-of-Excel-date-column/m-p/193374#M41389</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/12549"&gt;@SDF1&lt;/a&gt;, I have two suggestions:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;JSL via Run Program() can run other programs such as VBSript.&amp;nbsp; Your JSL could be written to Open teh file via Excel, format the column as text (if needed); save the file as tab delimited text; close Excel then read in the text file where you have the option to read the column as text and then convert.&lt;/LI&gt;
&lt;LI&gt;Excel Files can be used as a database. I did a little reading and the probelm your German colleagues are seeing might be due an Excel converter&amp;nbsp; for the data type.&amp;nbsp; Below is JSL to use Open Database(). This takes a little prep work. Your German colleagues would need to define a DSN for Excel and use the same name.&amp;nbsp; Now if everyone has 64 bit JMP and 64 bit MW Office that is pretty easy. If they have 32 bit MS Office, I can send the steps to take to set that up.&amp;nbsp; The code IMEX=1 tells Excel if it sees a column&amp;nbsp; that looks like a mixed data type to Excel the convert it to text.&amp;nbsp;&lt;/LI&gt;
&lt;/OL&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt2 = Open Database( "DSN=Excel Files;
    DBQ=c:/temp/ExcelDateBlog.xlsx;IMEX=1",
	"SELECT * FROM [Sheet1$]",
	"Result from XLS"
);
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I think working with a text file would be easier until JMP 15 when the Excel wizard allows specfiying the column formats. Let me know if you need help/example for option #1.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2019 23:30:05 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Force-import-format-of-Excel-date-column/m-p/193374#M41389</guid>
      <dc:creator>gzmorgan0</dc:creator>
      <dc:date>2019-04-17T23:30:05Z</dc:date>
    </item>
    <item>
      <title>Re: Force import format of Excel date column</title>
      <link>https://community.jmp.com/t5/Discussions/Force-import-format-of-Excel-date-column/m-p/193719#M41423</link>
      <description>&lt;P&gt;Hi JMPers,&lt;/P&gt;&lt;P&gt;Australia also uses the "incorrect" date format :(&lt;/img&gt; and so days are interpreted as months and &amp;gt;12 become missing value due to format violation. This can happen on the second line.&amp;nbsp;&amp;nbsp;it is very frustrating because if you're unlucky the first day &amp;gt; 12 can happen down the file where you don't notice and you end up with a missing value &lt;U&gt;without warning&lt;/U&gt; as JMP decides it has read an incorrect date format.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There are two things that might make it work.&amp;nbsp; First in JMP Preferences under 'Windows Specific' unckeck the box 'Use JMP language rather than System Locale settings...'.&amp;nbsp; I cant find any place in JMP where you can set a default date format - so not sure what this flag refers to.&amp;nbsp; The second step is to change the windows locale setting as the previous poster showed, BUT JMP doesnt like the dd/mm/YYYY setting - it has to be dd/MM/yy - don't know why, but then it works at least for me.&amp;nbsp; Don't know if this is jsut a Windows problem, ie if Macs don't have this problem.&amp;nbsp; I run JMP on a windows 7 machine and a windows 10 machine - JMP PRO 14.3 64 bit, but I've had this problem since Excel imports were a thing in JMP.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Some suggested reading in the column as text - I can't see any options for forcing JMP to read specific columns in as text - is that possible?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Another workaround is to get your data in CSV format as for some reason JMP allows very minute control over inputs unlike for Excel.&amp;nbsp; The third option is to read in Excel files using the database interface.&amp;nbsp; But that requires appropriate ODBC settings on your PC and it is a bit of a pain too.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note to JMP - it would be very good if JMP sent some warning or error messages if it fails to import a field due to wrong format.&amp;nbsp; I have clients who add * or &amp;lt; to numeric fields which Excel happily turns into character fields and JMP happily and silenty turns into missing values.&amp;nbsp; JSL is fantastic for automating tasks but this sort of thing makes it very hard to error proof your programs.&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Gunter&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Apr 2019 05:00:43 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Force-import-format-of-Excel-date-column/m-p/193719#M41423</guid>
      <dc:creator>ghartel</dc:creator>
      <dc:date>2019-04-19T05:00:43Z</dc:date>
    </item>
    <item>
      <title>Re: Force import format of Excel date column</title>
      <link>https://community.jmp.com/t5/Discussions/Force-import-format-of-Excel-date-column/m-p/193734#M41430</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/8144"&gt;@ghartel&lt;/a&gt;, Note that&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/3022"&gt;@briancorcoran&lt;/a&gt;&amp;nbsp;mentioned there might be more options in JMP 15.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Attached is a script that saves an Excel sheet as a tab delimited text file then reads in the text file into JMP.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You might want to try reading the text file with your system defaults (in Australia and Germany), to see if the JMP import text defaults will read the Date as a text. If not, then you have to name all your columns and specify the data type.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since this script uses VBScript, it likley doe not work for a Mac.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The script is provided as a "just in case this might help."&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Apr 2019 13:05:20 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Force-import-format-of-Excel-date-column/m-p/193734#M41430</guid>
      <dc:creator>gzmorgan0</dc:creator>
      <dc:date>2019-04-19T13:05:20Z</dc:date>
    </item>
    <item>
      <title>Re: Force import format of Excel date column</title>
      <link>https://community.jmp.com/t5/Discussions/Force-import-format-of-Excel-date-column/m-p/193740#M41432</link>
      <description>Thanks &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/70"&gt;@gzmorgan0&lt;/a&gt;, especially for the example import file. I'll be able to test it out next week and see if it works, not able to get to it soon.&lt;BR /&gt;&lt;BR /&gt;Look forward to the new "force" option in JMP 15.&lt;BR /&gt;&lt;BR /&gt;Thanks!,&lt;BR /&gt;DS&lt;BR /&gt;</description>
      <pubDate>Fri, 19 Apr 2019 13:50:42 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Force-import-format-of-Excel-date-column/m-p/193740#M41432</guid>
      <dc:creator>SDF1</dc:creator>
      <dc:date>2019-04-19T13:50:42Z</dc:date>
    </item>
    <item>
      <title>Re: Force import format of Excel date column</title>
      <link>https://community.jmp.com/t5/Discussions/Force-import-format-of-Excel-date-column/m-p/195335#M41640</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/70"&gt;@gzmorgan0&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I've finally gotten back and been able to test out your JSL script that uses VB to save as a txt. It works, and I can import the information as needed, my only problem is that it only does it for the last tab in the Excel file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; My Excel file has multiple tabs that I need to import, all with the date problem. Once in JMP, I concatenate all the data into a single data table for analysis. I also just found out that I will be needing to modify the JSL to open multiple of these Excel files and then put all the data together. An added level of complexity.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Unfortunately, I'm not familiar enough with VB to write something that handles multiple tabs. I have a colleague who is though, and they're working on it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I've tried changing my preferences in JMP to see if that fixes the issue, but it doesn't. There definitely seems to be a bug that even though I set my OS date format to Germany (d.m.y), it still uses the install OS (English) and reads the date as m.d.y, so it just ignores any day greater than 12.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; The JSL script is very helpful, thanks for posting it. We'll just need to modify the VB portion to deal with multiple tabs, that's all.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Apr 2019 18:50:19 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Force-import-format-of-Excel-date-column/m-p/195335#M41640</guid>
      <dc:creator>SDF1</dc:creator>
      <dc:date>2019-04-29T18:50:19Z</dc:date>
    </item>
    <item>
      <title>Re: Force import format of Excel date column</title>
      <link>https://community.jmp.com/t5/Discussions/Force-import-format-of-Excel-date-column/m-p/279926#M54260</link>
      <description>&lt;P&gt;Hi Brian,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm trying to import excel data and struggling to get it in the format I want. I noticed you said the JMP 15 has additional import formatting capabilities. Since I'm using JMP15, I was hoping you could help me on this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The time data in excel (1st column) has milliseconds attached so I need to force the import to recognize that. When imported, JMP just gives the&amp;nbsp; format("d/m/y h:m:s",27,0). I need to have it as&amp;nbsp; format("d/m/y h:m:s",27,3). If this is my code, where does the formatting for that decimal to 3 go?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Open(
    "file_location\file.xlsx",
    Worksheets( "Sheet 1" ),
    Use for all sheets( 1 ),
    Concatenate Worksheets( 0 ),
    Create Concatenation Column( 0 ),
    Worksheet Settings(
        1,
        Has Column Headers( 1 ),
        Number of Rows in Headers( 1 ),
        Headers Start on Row( 1 ),
        Data Starts on Row( 2 ),
        Data Starts on Column( 1 ),
        Data Ends on Row( 0 ),
        Data Ends on Column( 0 ),
        Replicated Spanned Rows( 1 ), 

        Replicated Spanned Headers( 0 ),
        Suppress Hidden Rows( 1 ),
        Suppress Hidden Columns( 1 ),
        Suppress Empty Columns( 1 ),
        Treat as Hierarchy( 0 ),
        Multiple Series Stack( 0 ),
        Import Cell Colors( 0 ),
        Limit Column Detect( 0 ),
        Column Separator String( "-" )
    )
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jul 2020 13:00:11 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Force-import-format-of-Excel-date-column/m-p/279926#M54260</guid>
      <dc:creator>dconradgreen</dc:creator>
      <dc:date>2020-07-20T13:00:11Z</dc:date>
    </item>
    <item>
      <title>Re: Force import format of Excel date column</title>
      <link>https://community.jmp.com/t5/Discussions/Force-import-format-of-Excel-date-column/m-p/279929#M54261</link>
      <description>&lt;P&gt;Assuming that the data that are downloaded contain the milliseconds, then all that has to be done is to change the format once the data table is imported.&amp;nbsp; And another assumption for this example is that the column that has the date and time value is called DateTime, the following JSL can be applied to change the data display.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;:DateTime &amp;lt;&amp;lt; set format( "d/m/y h:m:s", 27, 3 );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 17 Jul 2020 21:43:58 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Force-import-format-of-Excel-date-column/m-p/279929#M54261</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-07-17T21:43:58Z</dc:date>
    </item>
  </channel>
</rss>

