<?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 new column &amp; create M/Y date in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/new-column-create-M-Y-date/m-p/1267#M1267</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;MS, thanks for your answer to this data question. If i need output format like"y-m", not "m-y", how can i realize with formula? Here in my country, we just accept "y-m" or "y-m-d". Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Nov 2011 12:39:42 GMT</pubDate>
    <dc:creator>GoodMan</dc:creator>
    <dc:date>2011-11-30T12:39:42Z</dc:date>
    <item>
      <title>new column &amp; create M/Y date</title>
      <link>https://community.jmp.com/t5/Discussions/new-column-create-M-Y-date/m-p/1261#M1261</link>
      <description>I'd like to create a new date column based on data in other columns.  I have 2 columns containing dates in m/d/y format.  I have been able to parse out the month and year for each to create 4 new vars.  &lt;BR /&gt;&lt;BR /&gt;Now, I'd like to create a new var that is based on the month and year of one date, and then I'll backfill the second date if the first is missing, but I want the new var to be in M/Y format.  &lt;BR /&gt;&lt;BR /&gt;I am not seeing any script guidance as to how to pull the month and year back together to create the new M/Y var.  Any assistance is much appreciated!</description>
      <pubDate>Thu, 28 Jan 2010 23:26:26 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/new-column-create-M-Y-date/m-p/1261#M1261</guid>
      <dc:creator />
      <dc:date>2010-01-28T23:26:26Z</dc:date>
    </item>
    <item>
      <title>Re: new column &amp; create M/Y date</title>
      <link>https://community.jmp.com/t5/Discussions/new-column-create-M-Y-date/m-p/1262#M1262</link>
      <description>dang it, i just figured it out.  sorry for posting my query too hastily.</description>
      <pubDate>Thu, 28 Jan 2010 23:33:38 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/new-column-create-M-Y-date/m-p/1262#M1262</guid>
      <dc:creator />
      <dc:date>2010-01-28T23:33:38Z</dc:date>
    </item>
    <item>
      <title>Re: new column &amp; create M/Y date</title>
      <link>https://community.jmp.com/t5/Discussions/new-column-create-M-Y-date/m-p/1263#M1263</link>
      <description>hello,&lt;BR /&gt;&lt;BR /&gt;could you shortly explain? Have the same problem. Very pedestrian going back to excel, doing the grouping there and then for analysis back to JMP.&lt;BR /&gt;&lt;BR /&gt;Thank you.</description>
      <pubDate>Fri, 19 Feb 2010 15:52:17 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/new-column-create-M-Y-date/m-p/1263#M1263</guid>
      <dc:creator />
      <dc:date>2010-02-19T15:52:17Z</dc:date>
    </item>
    <item>
      <title>Re: new column &amp; create M/Y date</title>
      <link>https://community.jmp.com/t5/Discussions/new-column-create-M-Y-date/m-p/1264#M1264</link>
      <description>This is the script I ended up using. There is probably a more elegant way of doing the same thing, but this works well enough for my purposes:&lt;BR /&gt;&lt;BR /&gt;New Column( "start.month", Numeric, Continuous, Format( "Best", 10 ), Formula( Month( :start.date ) ) ); &lt;BR /&gt;New Column( "start.year", Numeric, Continuous, Format( "Best", 10 ), Formula( Year( :start.date ) ) );&lt;BR /&gt;&lt;BR /&gt;New Column("start.date.rev", format("m/y"),formula(Date MDY( :start.month, 1, :start.year)));&lt;BR /&gt;&lt;BR /&gt;for each row(&lt;BR /&gt;	If(IsMissing(admin.date),admin.date=start.date.rev);&lt;BR /&gt;	If(IsMissing(admin.year),admin.year=start.year);&lt;BR /&gt;);</description>
      <pubDate>Fri, 19 Feb 2010 16:11:11 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/new-column-create-M-Y-date/m-p/1264#M1264</guid>
      <dc:creator />
      <dc:date>2010-02-19T16:11:11Z</dc:date>
    </item>
    <item>
      <title>Re: new column &amp; create M/Y date</title>
      <link>https://community.jmp.com/t5/Discussions/new-column-create-M-Y-date/m-p/1265#M1265</link>
      <description>i've been trying to do exactly the same thing, change a full date into m/y format.  is there a way to do this without running a script using a formula?&lt;BR /&gt;&lt;BR /&gt;i created the columns using the month and year functions, but i can't concat them together</description>
      <pubDate>Fri, 19 Feb 2010 22:28:35 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/new-column-create-M-Y-date/m-p/1265#M1265</guid>
      <dc:creator>rossmiller</dc:creator>
      <dc:date>2010-02-19T22:28:35Z</dc:date>
    </item>
    <item>
      <title>Re: new column &amp; create M/Y date</title>
      <link>https://community.jmp.com/t5/Discussions/new-column-create-M-Y-date/m-p/1266#M1266</link>
      <description>This formula seem to work,&lt;BR /&gt;&lt;BR /&gt;Informat( Char( Month( :Date ) ) || "-" || Char( Year( :Date ) ), "m-y" )&lt;BR /&gt;&lt;BR /&gt;Remember to set the column format to numeric, continuous, and date: m-y.</description>
      <pubDate>Fri, 19 Feb 2010 22:45:51 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/new-column-create-M-Y-date/m-p/1266#M1266</guid>
      <dc:creator>ms</dc:creator>
      <dc:date>2010-02-19T22:45:51Z</dc:date>
    </item>
    <item>
      <title>new column &amp; create M/Y date</title>
      <link>https://community.jmp.com/t5/Discussions/new-column-create-M-Y-date/m-p/1267#M1267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;MS, thanks for your answer to this data question. If i need output format like"y-m", not "m-y", how can i realize with formula? Here in my country, we just accept "y-m" or "y-m-d". Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Nov 2011 12:39:42 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/new-column-create-M-Y-date/m-p/1267#M1267</guid>
      <dc:creator>GoodMan</dc:creator>
      <dc:date>2011-11-30T12:39:42Z</dc:date>
    </item>
  </channel>
</rss>

