<?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: change the date format during import in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/change-the-date-format-during-import/m-p/57155#M32064</link>
    <description>&lt;P&gt;JMP 14 can do this. Use the Preview Wizard to open the file the first time and specify the format you need.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Specify a d-m-y format for a column" style="width: 570px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/10766i1C5A7E7B43F0B4C9/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture1.PNG" alt="Specify a d-m-y format for a column" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Specify a d-m-y format for a column&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;After the file is opened, right-click the source script and edit it to see the script you need, something like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Open(
  "C:\Users\chales\Desktop\2col.txt",
  columns(
    New Column( "Col 2", Character, "Nominal" ),
    New Column( "Col 3", Numeric, "Continuous", Format( "d/m/y", 10 ), Input Format( "d/m/y" ) )
  ),
  Import Settings(
    End Of Line( CRLF, CR, LF ),
    End Of Field( Comma, CSV( 0 ) ),
    Strip Quotes( 1 ),
    Use Apostrophe as Quotation Mark( 0 ),
    Use Regional Settings( 0 ),
    Scan Whole File( 1 ),
    Treat empty columns as numeric( 0 ),
    CompressNumericColumns( 0 ),
    CompressCharacterColumns( 0 ),
    CompressAllowListCheck( 0 ),
    Labels( 1 ),
    Column Names Start( 1 ),
    Data Starts( 2 ),
    Lines To Read( "All" ),
    Year Rule( "20xx" )
  )
)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Text data imported with format" style="width: 512px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/10767i9AFB52CD771B49F6/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Text data imported with format" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Text data imported with format&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 17 May 2018 17:49:56 GMT</pubDate>
    <dc:creator>Craige_Hales</dc:creator>
    <dc:date>2018-05-17T17:49:56Z</dc:date>
    <item>
      <title>change the date format during import</title>
      <link>https://community.jmp.com/t5/Discussions/change-the-date-format-during-import/m-p/57077#M32022</link>
      <description>&lt;P&gt;hello, people!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have files with a date in european format (dd-mm-yyyy) and during the file import jmp converted&amp;nbsp;automatically in american format (m/d/yy) .&lt;/P&gt;&lt;P&gt;is it possible to change the jmp data format?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;AnthonyS&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 May 2018 11:32:44 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/change-the-date-format-during-import/m-p/57077#M32022</guid>
      <dc:creator>AnthonyS</dc:creator>
      <dc:date>2018-05-16T11:32:44Z</dc:date>
    </item>
    <item>
      <title>Re: change the date format during import</title>
      <link>https://community.jmp.com/t5/Discussions/change-the-date-format-during-import/m-p/57099#M32029</link>
      <description>&lt;P&gt;Hi Anthony,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think we will need more information on what file format you are importing, what version of JMP you are using and what operating system you are running on.&amp;nbsp; You might have better luck contacting JMP Tech Support at support@jmp.com.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&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>Wed, 16 May 2018 18:09:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/change-the-date-format-during-import/m-p/57099#M32029</guid>
      <dc:creator>briancorcoran</dc:creator>
      <dc:date>2018-05-16T18:09:49Z</dc:date>
    </item>
    <item>
      <title>Re: change the date format during import</title>
      <link>https://community.jmp.com/t5/Discussions/change-the-date-format-during-import/m-p/57141#M32058</link>
      <description>&lt;P&gt;My files are in format .txt , and I'm using JMP 14&lt;BR /&gt;&lt;BR /&gt;This is a part of my script.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;names default to here (1);
Clear Symbols();

filelist={}; //empty list

//ouvre une boite de dialogue retournant le chemin du fichier

prefilepath = Pick Directory( "Pick the Top Level Directory" );
If( Host is( Mac ),
filepath="/"||prefilepath,
filepath = Convert File Path( prefilepath, Windows )
);
prefilelist = Files In Directory( filepath, "recursive");
n2=nitems(prefilelist);


//Filtre sur les caractères spécifiées
For( i2 = 1, n2 &amp;gt;= i2, i2++,
file=(prefilelist[i2]);
If( Item( 2, prefilelist[i2], "." ) == "txt" | Item( 2, prefilelist[i2], "." ) == "csv" | Item( 2, prefilelist[i2], "." ) == "dat" &amp;amp; contains(prefilelist[i2],"LVL2") != 0,
Insert Into( filelist,file),
show(file)
)
);


//nombre d'objet dans filelist
nf=nitems(filelist);



For( iii = 1 , iii &amp;lt;= nf, iii++, //this starts the first loop
filenow = ( filelist[iii] );
fileopen=(filepath||filenow);
//dt=open(fileopen,private);
dt=open(fileopen, Import Settings(
End Of Line( CRLF, CR, LF ),
End Of Field( Tab, Other( ";" ), CSV( 0 ) ),//use ";" as a delimiter too
Strip Quotes( 1 ),
Use Apostrophe as Quotation Mark( 0 ),
Scan Whole File( 1 ),
Treat empty columns as numeric( 0 ),
CompressNumericColumns( 0 ),
CompressCharacterColumns( 0 ),
CompressAllowListCheck( 0 ),
Labels( 1 ),
Column Names Start(56),//starting on second row
Data Starts(57),//data starts on 3rd row
Lines To Read( "All" ),
Year Rule( "20xx" )
), private);//Import settings used in the open argument

New Column( "Source", Character, Nominal );
:Source &amp;lt;&amp;lt; set each value( filenow );
//dt&amp;lt;&amp;lt;new column("Source", character, nominal)&amp;lt;&amp;lt;set each value(9999);
dt &amp;lt;&amp;lt; Run Formulas();
//add the current table to the bottom of the combined data table
cctable &amp;lt;&amp;lt; Concatenate( Data Table( dt ), Append to first table );
//don't use "Create Source Column" argument
Close( dt, NoSave );//after concatenating the table, close it and move on
);//end of the first for loop&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Anthony&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 May 2018 18:09:01 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/change-the-date-format-during-import/m-p/57141#M32058</guid>
      <dc:creator>AnthonyS</dc:creator>
      <dc:date>2018-05-17T18:09:01Z</dc:date>
    </item>
    <item>
      <title>Re: change the date format during import</title>
      <link>https://community.jmp.com/t5/Discussions/change-the-date-format-during-import/m-p/57155#M32064</link>
      <description>&lt;P&gt;JMP 14 can do this. Use the Preview Wizard to open the file the first time and specify the format you need.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Specify a d-m-y format for a column" style="width: 570px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/10766i1C5A7E7B43F0B4C9/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture1.PNG" alt="Specify a d-m-y format for a column" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Specify a d-m-y format for a column&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;After the file is opened, right-click the source script and edit it to see the script you need, something like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Open(
  "C:\Users\chales\Desktop\2col.txt",
  columns(
    New Column( "Col 2", Character, "Nominal" ),
    New Column( "Col 3", Numeric, "Continuous", Format( "d/m/y", 10 ), Input Format( "d/m/y" ) )
  ),
  Import Settings(
    End Of Line( CRLF, CR, LF ),
    End Of Field( Comma, CSV( 0 ) ),
    Strip Quotes( 1 ),
    Use Apostrophe as Quotation Mark( 0 ),
    Use Regional Settings( 0 ),
    Scan Whole File( 1 ),
    Treat empty columns as numeric( 0 ),
    CompressNumericColumns( 0 ),
    CompressCharacterColumns( 0 ),
    CompressAllowListCheck( 0 ),
    Labels( 1 ),
    Column Names Start( 1 ),
    Data Starts( 2 ),
    Lines To Read( "All" ),
    Year Rule( "20xx" )
  )
)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Text data imported with format" style="width: 512px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/10767i9AFB52CD771B49F6/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Text data imported with format" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Text data imported with format&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 May 2018 17:49:56 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/change-the-date-format-during-import/m-p/57155#M32064</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2018-05-17T17:49:56Z</dc:date>
    </item>
  </channel>
</rss>

