<?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: Date column not sorting as it is a character in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Date-column-not-sorting-as-it-is-a-character/m-p/358617#M60870</link>
    <description>&lt;P&gt;To turn this into&amp;nbsp; proper JMP Date/Time numeric value:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Right click on the column header and select "Column Info"&lt;/LI&gt;
&lt;LI&gt;Change the Data Type from Character to Numeric&lt;/LI&gt;
&lt;LI&gt;Change the Modeling Type from Nominal to Continuous&lt;/LI&gt;
&lt;LI&gt;Select from the Format..........Time=&amp;gt;m/d/y h:m:s&lt;/LI&gt;
&lt;LI&gt;Click OK&lt;/LI&gt;
&lt;/OL&gt;</description>
    <pubDate>Fri, 12 Feb 2021 19:35:34 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2021-02-12T19:35:34Z</dc:date>
    <item>
      <title>Date column not sorting as it is a character</title>
      <link>https://community.jmp.com/t5/Discussions/Date-column-not-sorting-as-it-is-a-character/m-p/358593#M60868</link>
      <description>&lt;P&gt;I have a dataset and trying to sort by date.&lt;BR /&gt;I am having issues I have tried to informat the column as it been read in as a character.&lt;/P&gt;&lt;P&gt;But with no success. Have attached the dataset without the informat&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2023 23:26:05 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Date-column-not-sorting-as-it-is-a-character/m-p/358593#M60868</guid>
      <dc:creator>jearls11</dc:creator>
      <dc:date>2023-06-10T23:26:05Z</dc:date>
    </item>
    <item>
      <title>Re: Date column not sorting as it is a character</title>
      <link>https://community.jmp.com/t5/Discussions/Date-column-not-sorting-as-it-is-a-character/m-p/358616#M60869</link>
      <description>&lt;P&gt;I would suggest checking out &lt;A href="https://community.jmp.com/t5/JMP-Add-Ins/Data-Table-Tools-Add-in/ta-p/28582" target="_self"&gt;Data Table Tools Add-in&lt;/A&gt; by &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/3552"&gt;@brady_brady&lt;/a&gt;&amp;nbsp;&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="jthi_0-1613158377502.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/30207iEAF10BE870A4AEFC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1613158377502.png" alt="jthi_0-1613158377502.png" /&gt;&lt;/span&gt;&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="jthi_1-1613158402829.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/30208i37477CBBE63251D6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_1-1613158402829.png" alt="jthi_1-1613158402829.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2021 19:34:12 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Date-column-not-sorting-as-it-is-a-character/m-p/358616#M60869</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2021-02-12T19:34:12Z</dc:date>
    </item>
    <item>
      <title>Re: Date column not sorting as it is a character</title>
      <link>https://community.jmp.com/t5/Discussions/Date-column-not-sorting-as-it-is-a-character/m-p/358617#M60870</link>
      <description>&lt;P&gt;To turn this into&amp;nbsp; proper JMP Date/Time numeric value:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Right click on the column header and select "Column Info"&lt;/LI&gt;
&lt;LI&gt;Change the Data Type from Character to Numeric&lt;/LI&gt;
&lt;LI&gt;Change the Modeling Type from Nominal to Continuous&lt;/LI&gt;
&lt;LI&gt;Select from the Format..........Time=&amp;gt;m/d/y h:m:s&lt;/LI&gt;
&lt;LI&gt;Click OK&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Fri, 12 Feb 2021 19:35:34 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Date-column-not-sorting-as-it-is-a-character/m-p/358617#M60870</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2021-02-12T19:35:34Z</dc:date>
    </item>
    <item>
      <title>Re: Date column not sorting as it is a character</title>
      <link>https://community.jmp.com/t5/Discussions/Date-column-not-sorting-as-it-is-a-character/m-p/358769#M60893</link>
      <description>&lt;P&gt;Please screenshot,&lt;/P&gt;&lt;P&gt;as&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt;&amp;nbsp;pointed out, you have to convert it to a proper continuous time value to work with it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The display format is not important, it is only how the internally stored datetime is displayed.&lt;/P&gt;&lt;P&gt;But it is essential how the given string is interpreted, in your case you need to specify the appropriate informat, see screenshot and table script.&lt;/P&gt;&lt;P&gt;In that case I copied the column, because after conversion the original string is lost. In my case I had also to switch to JMP locales under preferences, Window specific, to see the proper datetime format (I have german windows system).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;New Table( "time_sort",
	Add Rows( 5 ),
	New Column( "Proc Time",
		Character,
		"Nominal",
		Set Values(
			{"1/12/2021 11:44:32 AM", "1/12/2021 11:44:32 AM",
			"1/12/2021 11:44:32 AM", "1/12/2021 11:44:32 AM",
			"1/12/2021 11:44:32 AM"}
		),
		Set Display Width( 177 )
	),
	New Column( "copy_date",
		Numeric,
		"Continuous",
		Format( "Locale Date Time h:m:s", 23, 0 ),
		Input Format( "m/d/y h:m:s", 0 ),
		Set Selected,
		Set Values( [3693296672, 3693296672, 3693296672, 3693296672, 3693296672] ),
		Set Display Width( 183 )
	)
)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 14 Feb 2021 17:29:36 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Date-column-not-sorting-as-it-is-a-character/m-p/358769#M60893</guid>
      <dc:creator>Georg</dc:creator>
      <dc:date>2021-02-14T17:29:36Z</dc:date>
    </item>
  </channel>
</rss>

