<?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: String Character Trim and conversion to  date in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/String-Character-Trim-and-conversion-to-date/m-p/44107#M25410</link>
    <description>&lt;P&gt;Thanks for your help. That generally worked.&lt;/P&gt;&lt;P&gt;However, it seems I have to speciffacally set the desired date format as it is interpreting some entries as 'amercian style'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;MQC_280817_Pb150 --&amp;gt; 28Aug2017&lt;/P&gt;&lt;P&gt;MQC_060917_Pb158_2 --&amp;gt; 09Jun2017 --&amp;gt; Should be 06Sep2017&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How could I best unify this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again for your input.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Lutz&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 08 Sep 2017 12:24:54 GMT</pubDate>
    <dc:creator>lutz_eckart_pyr</dc:creator>
    <dc:date>2017-09-08T12:24:54Z</dc:date>
    <item>
      <title>String Character Trim and conversion to  date</title>
      <link>https://community.jmp.com/t5/Discussions/String-Character-Trim-and-conversion-to-date/m-p/44092#M25406</link>
      <description>&lt;P&gt;All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am currently working with a table that contains&amp;nbsp;a column with character strings like&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;'MQC_030817_1_Pb' or&lt;/P&gt;&lt;P&gt;'Cond_060917_1'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to extract the string in between the first 2 delimeters '_ 030817_'and convert it into a date format&lt;/P&gt;&lt;P&gt;in order to sort the column by this date.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I appreciate any inputs on how to express a jsl formula to achieve this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your support in advance.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Sep 2017 08:20:46 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/String-Character-Trim-and-conversion-to-date/m-p/44092#M25406</guid>
      <dc:creator>lutz_eckart_pyr</dc:creator>
      <dc:date>2017-09-08T08:20:46Z</dc:date>
    </item>
    <item>
      <title>Re: String Character Trim and conversion to  date</title>
      <link>https://community.jmp.com/t5/Discussions/String-Character-Trim-and-conversion-to-date/m-p/44103#M25408</link>
      <description>&lt;P&gt;&lt;A href="https://community.jmp.com/t5/JMP-Blog/If-you-learn-only-one-Formula-Editor-function-Word-is-the-one/ba-p/30381" target="_self"&gt;Once again&lt;/A&gt;, the &lt;A href="http://www.jmp.com/support/help/13-2/Character_Functions.shtml#128266" target="_self"&gt;Word()&lt;/A&gt; function comes to the rescue.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JMPScreenSnapz122.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/7451i5545ABD3A8DCCD9D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JMPScreenSnapz122.png" alt="JMPScreenSnapz122.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Informat( Word( 2, :Column 1, "_" ) )&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Starting from the inside, the &lt;FONT face="courier new,courier"&gt;Word()&lt;/FONT&gt; function returns the second word of the string using _ as a delimiter.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The &lt;FONT face="courier new,courier"&gt;&lt;A href="http://www.jmp.com/support/help/13-2/Date_Time_Functions.shtml#123225" target="_self"&gt;Informat()&lt;/A&gt;&lt;/FONT&gt;&amp;nbsp;function converts the string of numbers into the corresponding date value.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Sep 2017 12:05:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/String-Character-Trim-and-conversion-to-date/m-p/44103#M25408</guid>
      <dc:creator>Jeff_Perkinson</dc:creator>
      <dc:date>2017-09-08T12:05:52Z</dc:date>
    </item>
    <item>
      <title>Re: String Character Trim and conversion to  date</title>
      <link>https://community.jmp.com/t5/Discussions/String-Character-Trim-and-conversion-to-date/m-p/44107#M25410</link>
      <description>&lt;P&gt;Thanks for your help. That generally worked.&lt;/P&gt;&lt;P&gt;However, it seems I have to speciffacally set the desired date format as it is interpreting some entries as 'amercian style'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;MQC_280817_Pb150 --&amp;gt; 28Aug2017&lt;/P&gt;&lt;P&gt;MQC_060917_Pb158_2 --&amp;gt; 09Jun2017 --&amp;gt; Should be 06Sep2017&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How could I best unify this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again for your input.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Lutz&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Sep 2017 12:24:54 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/String-Character-Trim-and-conversion-to-date/m-p/44107#M25410</guid>
      <dc:creator>lutz_eckart_pyr</dc:creator>
      <dc:date>2017-09-08T12:24:54Z</dc:date>
    </item>
    <item>
      <title>Re: String Character Trim and conversion to  date</title>
      <link>https://community.jmp.com/t5/Discussions/String-Character-Trim-and-conversion-to-date/m-p/44109#M25411</link>
      <description>&lt;P&gt;In that case you can add an input format to the &lt;FONT face="courier new,courier"&gt;Informat()&lt;/FONT&gt; function.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JMPScreenSnapz123.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/7452i29115E60EC239C33/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JMPScreenSnapz123.png" alt="JMPScreenSnapz123.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Informat( Word( 2, :Column 1, "_" ), "ddmmyyyy" )&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 08 Sep 2017 12:37:09 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/String-Character-Trim-and-conversion-to-date/m-p/44109#M25411</guid>
      <dc:creator>Jeff_Perkinson</dc:creator>
      <dc:date>2017-09-08T12:37:09Z</dc:date>
    </item>
    <item>
      <title>Re: String Character Trim and conversion to  date</title>
      <link>https://community.jmp.com/t5/Discussions/String-Character-Trim-and-conversion-to-date/m-p/44112#M25413</link>
      <description>&lt;P&gt;Thanks for this as I now have the table sorted by time.&lt;/P&gt;&lt;P&gt;Unfortunately it seems that the default sorting for the overlay legend in graph builders seems to be alphanumeric.&lt;/P&gt;&lt;P&gt;Is there any way to change the legend sorting to follow the sorting of the table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(Same kind of question for X-axis of variablity charts which seems to be sorted alphanumeric rather based on order in table).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks once more.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Lutz&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Sep 2017 13:24:40 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/String-Character-Trim-and-conversion-to-date/m-p/44112#M25413</guid>
      <dc:creator>lutz_eckart_pyr</dc:creator>
      <dc:date>2017-09-08T13:24:40Z</dc:date>
    </item>
    <item>
      <title>Re: String Character Trim and conversion to  date</title>
      <link>https://community.jmp.com/t5/Discussions/String-Character-Trim-and-conversion-to-date/m-p/44127#M25419</link>
      <description>&lt;P&gt;There is a column property for this. Right-click on the header for your Overlay column and select Column Properties -&amp;gt; Row Order Levels. Do the same for your X-axis variable. I believe this will give you what you are looking for.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Sep 2017 15:02:06 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/String-Character-Trim-and-conversion-to-date/m-p/44127#M25419</guid>
      <dc:creator>jerry_cooper</dc:creator>
      <dc:date>2017-09-08T15:02:06Z</dc:date>
    </item>
  </channel>
</rss>

