<?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: How to calculate Day/Month in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-calculate-Day-Month/m-p/257510#M50599</link>
    <description>&lt;P&gt;I would do it by creating 2 new columns;&amp;nbsp; Assuming your current date column is called :Date, I did the following&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Create a new column called Year, with the following formula
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Year(:Date);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/LI&gt;
&lt;LI&gt;Create a new column called Month_Day.&amp;nbsp; All of the values will have the same year, to standardize the Month_Day. &amp;nbsp;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;DateMDY(month(:Date), Day(:Date), 2020);&lt;/CODE&gt;&lt;/PRE&gt;
and apply this custom format to the new column
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;monthList = {"Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"
};
monthList[Month( :value )] || "/" || Char( Day( :value ) );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="overlay.PNG" style="width: 946px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/22955iACEA97CECCE42082/image-size/large?v=v2&amp;amp;px=999" role="button" title="overlay.PNG" alt="overlay.PNG" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;LI&gt;Attached is the data table that created this graph, along with the script&lt;/LI&gt;
&lt;/OL&gt;</description>
    <pubDate>Sun, 12 Apr 2020 12:26:07 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2020-04-12T12:26:07Z</dc:date>
    <item>
      <title>How to calculate Day/Month</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-calculate-Day-Month/m-p/257504#M50598</link>
      <description>&lt;P&gt;I have a data set with a time column covering 10 years of data. How can I calculate month/day (without year) from this column? I want to place this new variable on x axis and overlay my plot by year to look at the trend of my variable (ozone concentration) year-over-year. One idea is to use Day of Year, but I want to show the months on the x axis too which is not possible with Day of Year. Any suggestions?&lt;/P&gt;</description>
      <pubDate>Sun, 12 Apr 2020 07:08:40 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-calculate-Day-Month/m-p/257504#M50598</guid>
      <dc:creator>shasheminassab1</dc:creator>
      <dc:date>2020-04-12T07:08:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate Day/Month</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-calculate-Day-Month/m-p/257510#M50599</link>
      <description>&lt;P&gt;I would do it by creating 2 new columns;&amp;nbsp; Assuming your current date column is called :Date, I did the following&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Create a new column called Year, with the following formula
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Year(:Date);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/LI&gt;
&lt;LI&gt;Create a new column called Month_Day.&amp;nbsp; All of the values will have the same year, to standardize the Month_Day. &amp;nbsp;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;DateMDY(month(:Date), Day(:Date), 2020);&lt;/CODE&gt;&lt;/PRE&gt;
and apply this custom format to the new column
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;monthList = {"Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"
};
monthList[Month( :value )] || "/" || Char( Day( :value ) );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="overlay.PNG" style="width: 946px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/22955iACEA97CECCE42082/image-size/large?v=v2&amp;amp;px=999" role="button" title="overlay.PNG" alt="overlay.PNG" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;LI&gt;Attached is the data table that created this graph, along with the script&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Sun, 12 Apr 2020 12:26:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-calculate-Day-Month/m-p/257510#M50599</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-04-12T12:26:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate Day/Month</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-calculate-Day-Month/m-p/257539#M50607</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt;&amp;nbsp;for the advice. The only issue with this method is that I cannot easily control the min, max, and interval of the x axis since it not really a date format.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 12 Apr 2020 19:46:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-calculate-Day-Month/m-p/257539#M50607</guid>
      <dc:creator>shasheminassab</dc:creator>
      <dc:date>2020-04-12T19:46:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate Day/Month</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-calculate-Day-Month/m-p/257546#M50609</link>
      <description>&lt;P&gt;The column "Adjusted month_day" is a JMP Date column.&amp;nbsp; It is only displayed using a custom format.&amp;nbsp; Yes, if you want to go to the Axis setting for the X axis, you would have to enter the values in in the raw date value( the number of seconds since January 1st, 1904), but interactively, you can move, compress, expand the axis normally, and if you are setting the values in JSL, you can always use the Informat() function to set the min, max values in a user friendly structure&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;gb = Graph Builder(
	Variables( X( :Adjusted month_day ), Y( :Y ), Overlay( :Year ) ),
	Elements( Points( X, Y, Legend( 15 ) ), Smoother( X, Y, Legend( 16 ) ) )
);
report(gb)[AxisBox(1)] &amp;lt;&amp;lt; min( informat("05/01/2020","m/d/y")) &amp;lt;&amp;lt; inc( in weeks(1));&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="english.PNG" style="width: 952px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/22958i3000409C51F605A1/image-size/large?v=v2&amp;amp;px=999" role="button" title="english.PNG" alt="english.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 12 Apr 2020 20:22:46 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-calculate-Day-Month/m-p/257546#M50609</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-04-12T20:22:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate Day/Month</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-calculate-Day-Month/m-p/257547#M50610</link>
      <description>Wonderful!! Thanks.&lt;BR /&gt;</description>
      <pubDate>Sun, 12 Apr 2020 20:25:13 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-calculate-Day-Month/m-p/257547#M50610</guid>
      <dc:creator>shasheminassab1</dc:creator>
      <dc:date>2020-04-12T20:25:13Z</dc:date>
    </item>
  </channel>
</rss>

