<?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 column format in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Change-column-format/m-p/685567#M87167</link>
    <description>&lt;P&gt;A few issues&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;You can not reset the Datatype etc. when the column is has a formula that sets the value for the column.&lt;/LI&gt;
&lt;LI&gt;I don't understand what the purpose of running the Update Platform when it was updating a data table with the same data table.&lt;/LI&gt;
&lt;LI&gt;I don't understand what dt9090 is.&lt;/LI&gt;
&lt;LI&gt;You need to create the column using the formula you specified(and then remove the formula) before changing the data type and format.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Below is a much simplified script that creates a simple example data table that has your indicated original date structure, and then adds a new column.&amp;nbsp; It then deletes te formula and then changes the data type and sets the new format.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;names default to here( 1 );
dt = New Table( "Example",
	New Column( "Start_Date", character, set values( {"2023-03-22", "2022-12-04"} ) )
);

dt &amp;lt;&amp;lt; New Column( "Actual Start Date", character, Formula( :Start_Date ) );
dt:Actual Start Date &amp;lt;&amp;lt; delete formula;
dt:Actual Start Date &amp;lt;&amp;lt; Data Type( Numeric ) &amp;lt;&amp;lt; modeling type( continuous );
dt:Actual Start Date &amp;lt;&amp;lt; Format( "yyyy-mm-dd", 19 );&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 11 Oct 2023 01:06:05 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2023-10-11T01:06:05Z</dc:date>
    <item>
      <title>Change column format</title>
      <link>https://community.jmp.com/t5/Discussions/Change-column-format/m-p/685541#M87166</link>
      <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am opening a csv file with dates (0000-00-00) having a default column data type character. However, whenever I tried to update the column with a formula from another column with a date value, I cannot change the format into date. My code looks something like this&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open ("C:\Users\table1.jmp");
dt2 = Open ("C:\Users\table1.jmp");

dt2 &amp;lt;&amp;lt; Update( With( dt),
	Match Columns( :idFin = :idFin ),
	Add Columns from Update Table( :Start_Date, :End_Date )
);

dt2:Name ("Actual Start Date") &amp;lt;&amp;lt; Data Type( Numeric,  Format( "y/m/d", 19 ));
dt2:Name ("Actual Start Date") &amp;lt;&amp;lt; Set Formula( :Start_Date );&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;After having the formula (:Start_Date) on my Actual Start Date column, it doesn't change to y/m/d format but instead it has the Best format. Please help&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2023 01:43:16 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Change-column-format/m-p/685541#M87166</guid>
      <dc:creator>UserID16644</dc:creator>
      <dc:date>2023-10-11T01:43:16Z</dc:date>
    </item>
    <item>
      <title>Re: Change column format</title>
      <link>https://community.jmp.com/t5/Discussions/Change-column-format/m-p/685567#M87167</link>
      <description>&lt;P&gt;A few issues&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;You can not reset the Datatype etc. when the column is has a formula that sets the value for the column.&lt;/LI&gt;
&lt;LI&gt;I don't understand what the purpose of running the Update Platform when it was updating a data table with the same data table.&lt;/LI&gt;
&lt;LI&gt;I don't understand what dt9090 is.&lt;/LI&gt;
&lt;LI&gt;You need to create the column using the formula you specified(and then remove the formula) before changing the data type and format.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Below is a much simplified script that creates a simple example data table that has your indicated original date structure, and then adds a new column.&amp;nbsp; It then deletes te formula and then changes the data type and sets the new format.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;names default to here( 1 );
dt = New Table( "Example",
	New Column( "Start_Date", character, set values( {"2023-03-22", "2022-12-04"} ) )
);

dt &amp;lt;&amp;lt; New Column( "Actual Start Date", character, Formula( :Start_Date ) );
dt:Actual Start Date &amp;lt;&amp;lt; delete formula;
dt:Actual Start Date &amp;lt;&amp;lt; Data Type( Numeric ) &amp;lt;&amp;lt; modeling type( continuous );
dt:Actual Start Date &amp;lt;&amp;lt; Format( "yyyy-mm-dd", 19 );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 11 Oct 2023 01:06:05 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Change-column-format/m-p/685567#M87167</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2023-10-11T01:06:05Z</dc:date>
    </item>
  </channel>
</rss>

