<?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: Parse Month (in 3 letter abbreviation) from Date Time in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Parse-Month-in-3-letter-abbreviation-from-Date-Time/m-p/225648#M44799</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;Craige,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you so much for the help. The original column was in a date time format.&amp;nbsp; So I ended up using the following JSL code:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt &amp;lt;&amp;lt;  New Column("Month", Formula(Substr( Format( :Date Time, "ddMonyyyy" ), 3, 3 )));&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 12 Sep 2019 21:56:06 GMT</pubDate>
    <dc:creator>KellyT</dc:creator>
    <dc:date>2019-09-12T21:56:06Z</dc:date>
    <item>
      <title>Parse Month (in 3 letter abbreviation) from Date Time</title>
      <link>https://community.jmp.com/t5/Discussions/Parse-Month-in-3-letter-abbreviation-from-Date-Time/m-p/225626#M44795</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a Date Time column containing dates in the following format of (dd/mm/yyy):&lt;/P&gt;&lt;P&gt;01/03/2017&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;01/01/2017&lt;/P&gt;&lt;P&gt;01/12/2017&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I use JSL to parse the month so that it would return:&lt;/P&gt;&lt;P&gt;Mar&lt;/P&gt;&lt;P&gt;Jan&lt;/P&gt;&lt;P&gt;Dec&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much for your help&lt;/P&gt;</description>
      <pubDate>Thu, 12 Sep 2019 20:43:14 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Parse-Month-in-3-letter-abbreviation-from-Date-Time/m-p/225626#M44795</guid>
      <dc:creator>KellyT</dc:creator>
      <dc:date>2019-09-12T20:43:14Z</dc:date>
    </item>
    <item>
      <title>Re: Parse Month (in 3 letter abbreviation) from Date Time</title>
      <link>https://community.jmp.com/t5/Discussions/Parse-Month-in-3-letter-abbreviation-from-Date-Time/m-p/225637#M44797</link>
      <description>&lt;P&gt;It is not clear if your column is a character column or a date-formatted numeric column. Here's a way to get the 3-letter month names from JMP without building a 12-item lookup table:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;x=informat("01/12/2017","d/m/y"); // use this if the data is character, creates a date-time value
y=format(x,"ddMonyyyy"); // use this to get a string from a date time: "01Dec2017"
z=substr(y,3,3); // use this to pick out the month: "Dec"&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;You can also ask the date time value for the day, month, and year parts as numbers:&amp;nbsp; month(x), day(x), year(x).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Sep 2019 21:16:20 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Parse-Month-in-3-letter-abbreviation-from-Date-Time/m-p/225637#M44797</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2019-09-12T21:16:20Z</dc:date>
    </item>
    <item>
      <title>Re: Parse Month (in 3 letter abbreviation) from Date Time</title>
      <link>https://community.jmp.com/t5/Discussions/Parse-Month-in-3-letter-abbreviation-from-Date-Time/m-p/225648#M44799</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;Craige,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you so much for the help. The original column was in a date time format.&amp;nbsp; So I ended up using the following JSL code:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt &amp;lt;&amp;lt;  New Column("Month", Formula(Substr( Format( :Date Time, "ddMonyyyy" ), 3, 3 )));&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 12 Sep 2019 21:56:06 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Parse-Month-in-3-letter-abbreviation-from-Date-Time/m-p/225648#M44799</guid>
      <dc:creator>KellyT</dc:creator>
      <dc:date>2019-09-12T21:56:06Z</dc:date>
    </item>
  </channel>
</rss>

