<?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 do I sort my dates in order? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-do-I-sort-my-dates-in-order/m-p/722381#M90461</link>
    <description>&lt;P&gt;Hello Jim,&lt;/P&gt;&lt;P&gt;I know how to do it in JMP. But how do you write a script in JSL to convert the vDate column from char to numeric date?&lt;/P&gt;</description>
    <pubDate>Wed, 07 Feb 2024 05:04:57 GMT</pubDate>
    <dc:creator>cchueng</dc:creator>
    <dc:date>2024-02-07T05:04:57Z</dc:date>
    <item>
      <title>How do I sort my dates in order?</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-I-sort-my-dates-in-order/m-p/722363#M90456</link>
      <description>&lt;P&gt;Attached is my data table. You can see that my dates in the x-axis in my chart is not in order. How do I write a script to sort the date column before I build the chart? Notice that my date column in the table is in char.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="cchueng_0-1707265141703.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/60947iD33A27858478B56E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="cchueng_0-1707265141703.png" alt="cchueng_0-1707265141703.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Feb 2024 00:22:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-I-sort-my-dates-in-order/m-p/722363#M90456</guid>
      <dc:creator>cchueng</dc:creator>
      <dc:date>2024-02-07T00:22:03Z</dc:date>
    </item>
    <item>
      <title>Re: How do I sort my dates in order?</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-I-sort-my-dates-in-order/m-p/722368#M90457</link>
      <description>&lt;P&gt;This is a common problem when you are new to JMP. Dates should be stored as a number. Numbers are right-justified in the data table. Your date column is stored as a character string, which you can tell because it is left-justified. JMP orders character strings alphabetically. I added a column to convert your date to numeric. Open up the column info on the new Date field so you can see how this conversion is made. It could have been done on the original date column, but I thought it would be harder for you to see.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Feb 2024 01:04:41 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-I-sort-my-dates-in-order/m-p/722368#M90457</guid>
      <dc:creator>Dan_Obermiller</dc:creator>
      <dc:date>2024-02-07T01:04:41Z</dc:date>
    </item>
    <item>
      <title>Re: How do I sort my dates in order?</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-I-sort-my-dates-in-order/m-p/722369#M90458</link>
      <description>&lt;P&gt;The vDate column needs to be converted to a JMP Date value.&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Double click on the vdate column header to open the Col Info column&lt;/LI&gt;
&lt;LI&gt;Click on Remove Formula&lt;/LI&gt;
&lt;LI&gt;Change the Data Type to Numeric&lt;/LI&gt;
&lt;LI&gt;Change the Modeling Type to Continuous&lt;/LI&gt;
&lt;LI&gt;Click on the down arrow for the Format and select&amp;nbsp; &amp;nbsp; &amp;nbsp;Date=&amp;gt;m/d/y&lt;/LI&gt;
&lt;LI&gt;Click on OK&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Your column should now be in a JMP date format.&amp;nbsp; You can now use&amp;nbsp; &amp;nbsp;Tables=&amp;gt;Sort&amp;nbsp; &amp;nbsp;to sort the data table.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Feb 2024 01:02:35 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-I-sort-my-dates-in-order/m-p/722369#M90458</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2024-02-07T01:02:35Z</dc:date>
    </item>
    <item>
      <title>Re: How do I sort my dates in order?</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-I-sort-my-dates-in-order/m-p/722380#M90460</link>
      <description>&lt;P&gt;Hello Dan,&lt;/P&gt;&lt;P&gt;I know how to do it in JMP. But how do you write a script in JSL to convert the vDate column from char to numeric date?&lt;/P&gt;</description>
      <pubDate>Wed, 07 Feb 2024 05:04:22 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-I-sort-my-dates-in-order/m-p/722380#M90460</guid>
      <dc:creator>cchueng</dc:creator>
      <dc:date>2024-02-07T05:04:22Z</dc:date>
    </item>
    <item>
      <title>Re: How do I sort my dates in order?</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-I-sort-my-dates-in-order/m-p/722381#M90461</link>
      <description>&lt;P&gt;Hello Jim,&lt;/P&gt;&lt;P&gt;I know how to do it in JMP. But how do you write a script in JSL to convert the vDate column from char to numeric date?&lt;/P&gt;</description>
      <pubDate>Wed, 07 Feb 2024 05:04:57 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-I-sort-my-dates-in-order/m-p/722381#M90461</guid>
      <dc:creator>cchueng</dc:creator>
      <dc:date>2024-02-07T05:04:57Z</dc:date>
    </item>
    <item>
      <title>Re: How do I sort my dates in order?</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-I-sort-my-dates-in-order/m-p/722382#M90462</link>
      <description>&lt;P&gt;JMP will create the JSL version of how to do the conversion, after you go through it interactively.&lt;/P&gt;
&lt;P&gt;Here is the JSL taken from the log, after I converted the column interactively&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;// Change column info: vDate
Data Table( "table1" ):vDate &amp;lt;&amp;lt; Data Type(
	Numeric,
	Format( "m/d/y", 10 ),
	Input Format( "m/d/y" )
) &amp;lt;&amp;lt; Delete Formula &amp;lt;&amp;lt; Set Modeling Type( "Continuous" ) &amp;lt;&amp;lt; Set Field Width( 12 );You&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Feb 2024 05:48:32 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-I-sort-my-dates-in-order/m-p/722382#M90462</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2024-02-07T05:48:32Z</dc:date>
    </item>
    <item>
      <title>Re: How do I sort my dates in order?</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-I-sort-my-dates-in-order/m-p/722387#M90465</link>
      <description>&lt;P&gt;Hi Jim,&lt;/P&gt;&lt;P&gt;A big thank you, it worked for me!&lt;/P&gt;</description>
      <pubDate>Wed, 07 Feb 2024 05:57:31 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-I-sort-my-dates-in-order/m-p/722387#M90465</guid>
      <dc:creator>cchueng</dc:creator>
      <dc:date>2024-02-07T05:57:31Z</dc:date>
    </item>
  </channel>
</rss>

