<?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 Date: Date Type, Modeling Type and Format -&amp;gt;  How to fix MMM/YYYY in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Date-Date-Type-Modeling-Type-and-Format-gt-How-to-fix-MMM-YYYY/m-p/81543#M36968</link>
    <description>&lt;P&gt;Data in format MMM/YYYY (001/2019, 002/2019, ...012/2019) is being imported as Date Type&amp;nbsp;&lt;STRONG&gt;Character&lt;/STRONG&gt;, Modeling Type&amp;nbsp;&lt;STRONG&gt;Nominal&lt;/STRONG&gt;.&lt;BR /&gt;I'm trying to get JMP to recognize this as a date.&amp;nbsp; The final format isn't import per se.&amp;nbsp; I show a format below just as an example.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I've tried scripting two ways to fix with no luck. The column name is "MMM/YYYY"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;[fail #1]&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;names default to here(1);
dt = current data table();
dt&amp;lt;&amp;lt; column(:"MMM/YYYY",Numeric,Continous,Format( "m/d/y", 10));&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;[fail #2]&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;names default to here(1);
dt = current data table();
:"MMM/YYYY"() &amp;lt;&amp;lt; Date Type(Numeric) &amp;lt;&amp;lt; Modeling Type(Continous) &amp;lt;&amp;lt;Format( "m/d/y", 10);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 26 Oct 2018 19:23:32 GMT</pubDate>
    <dc:creator>BSwid</dc:creator>
    <dc:date>2018-10-26T19:23:32Z</dc:date>
    <item>
      <title>Date: Date Type, Modeling Type and Format -&gt;  How to fix MMM/YYYY</title>
      <link>https://community.jmp.com/t5/Discussions/Date-Date-Type-Modeling-Type-and-Format-gt-How-to-fix-MMM-YYYY/m-p/81543#M36968</link>
      <description>&lt;P&gt;Data in format MMM/YYYY (001/2019, 002/2019, ...012/2019) is being imported as Date Type&amp;nbsp;&lt;STRONG&gt;Character&lt;/STRONG&gt;, Modeling Type&amp;nbsp;&lt;STRONG&gt;Nominal&lt;/STRONG&gt;.&lt;BR /&gt;I'm trying to get JMP to recognize this as a date.&amp;nbsp; The final format isn't import per se.&amp;nbsp; I show a format below just as an example.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I've tried scripting two ways to fix with no luck. The column name is "MMM/YYYY"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;[fail #1]&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;names default to here(1);
dt = current data table();
dt&amp;lt;&amp;lt; column(:"MMM/YYYY",Numeric,Continous,Format( "m/d/y", 10));&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;[fail #2]&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;names default to here(1);
dt = current data table();
:"MMM/YYYY"() &amp;lt;&amp;lt; Date Type(Numeric) &amp;lt;&amp;lt; Modeling Type(Continous) &amp;lt;&amp;lt;Format( "m/d/y", 10);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Oct 2018 19:23:32 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Date-Date-Type-Modeling-Type-and-Format-gt-How-to-fix-MMM-YYYY/m-p/81543#M36968</guid>
      <dc:creator>BSwid</dc:creator>
      <dc:date>2018-10-26T19:23:32Z</dc:date>
    </item>
    <item>
      <title>Re: Date: Date Type, Modeling Type and Format -&gt;  How to fix MMM/YYYY</title>
      <link>https://community.jmp.com/t5/Discussions/Date-Date-Type-Modeling-Type-and-Format-gt-How-to-fix-MMM-YYYY/m-p/81549#M36970</link>
      <description>&lt;P&gt;This code works, but it seems like there should be a simplier way.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;//Reformat MMM/YYYY (create new columns, create new Date, delete MMM/YYYY)
New Column( "Month",
Numeric,
"Nominal",
Format( "Best", 9 ),
Formula( Num( Substr( :Name( "MMM/YYYY" ), 2, 2 ) ) )
);
New Column( "Year",
Numeric,
"Nominal",
Format( "Best", 9 ),
Formula( Num( Substr( :Name( "MMM/YYYY" ), 5, 8 ) ) )
);
New Column( "Date",
Numeric,
"Continuous",
Format( "m/y", 12 ),
Input Format( "m/y" ),
Formula( Date MDY( :Month, 1, :Year ) )
);
//Moves new column to follow Product Line
:Date &amp;lt;&amp;lt; Set Selected( 1 );
dt &amp;lt;&amp;lt; Move Selected Column( after( "Product Line" ) );
:Date &amp;lt;&amp;lt; Set Selected( 0 );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JMP Question MMMYYYY.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/14008iCCB2207609B109C2/image-size/large?v=v2&amp;amp;px=999" role="button" title="JMP Question MMMYYYY.png" alt="JMP Question MMMYYYY.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Oct 2018 19:25:48 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Date-Date-Type-Modeling-Type-and-Format-gt-How-to-fix-MMM-YYYY/m-p/81549#M36970</guid>
      <dc:creator>BSwid</dc:creator>
      <dc:date>2018-10-26T19:25:48Z</dc:date>
    </item>
    <item>
      <title>Re: Date: Date Type, Modeling Type and Format -&gt;  How to fix MMM/YYYY</title>
      <link>https://community.jmp.com/t5/Discussions/Date-Date-Type-Modeling-Type-and-Format-gt-How-to-fix-MMM-YYYY/m-p/81732#M36989</link>
      <description>&lt;P&gt;The script below demonstrates that a simple &lt;STRONG&gt;Informat()&lt;/STRONG&gt; will work, or you can strip off the leading zero and use &lt;STRONG&gt;Informat() .&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;New Column( "Date",
	Numeric,
	"Continuous",
	Format( "m/y", 12 ),
	Formula( Informat( Right( :Name("MMM/YYYY"), 8 ), "m/y" ) )
);

New Column( "Date2",
	Numeric,
	"Continuous",
	Format( "m/y", 12 ),
	Formula( Informat(  :Name("MMM/YYYY") , "m/y" ) )
);

&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 28 Oct 2018 21:10:14 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Date-Date-Type-Modeling-Type-and-Format-gt-How-to-fix-MMM-YYYY/m-p/81732#M36989</guid>
      <dc:creator>gzmorgan0</dc:creator>
      <dc:date>2018-10-28T21:10:14Z</dc:date>
    </item>
  </channel>
</rss>

