<?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-Time Formats in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Date-Time-Formats/m-p/265831#M51779</link>
    <description>&lt;P&gt;Here is a little script that should convert the column to a JMP date time value&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;names default to here(1);
dt=current data table();
for each row(
	:date = substr(:date, 1, length(:date)-length(word(-1,:date,"-"))-1);
);

dt:date &amp;lt;&amp;lt; data type(numeric)&amp;lt;&amp;lt;modeling type(continuous);
dt:date &amp;lt;&amp;lt; format("yyyy-mm-ddThh:mm:ss");&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Just replace the values of :Date to whatever your column name is&lt;/P&gt;</description>
    <pubDate>Mon, 11 May 2020 17:16:36 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2020-05-11T17:16:36Z</dc:date>
    <item>
      <title>Date-Time Formats</title>
      <link>https://community.jmp.com/t5/Discussions/Date-Time-Formats/m-p/265799#M51777</link>
      <description>&lt;P&gt;I have date-time data in a column of form:&lt;/P&gt;&lt;P&gt;2020-04-30T17:29:48.967-04:00&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This data was loaded from a database.&amp;nbsp; JMP recognizes it only as a string of characters.&lt;/P&gt;&lt;P&gt;How can I convert this into a JMP datetime format?&lt;/P&gt;&lt;P&gt;P.S. I do not care about the timezone (-04:00).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 May 2020 16:41:22 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Date-Time-Formats/m-p/265799#M51777</guid>
      <dc:creator>jfsilves</dc:creator>
      <dc:date>2020-05-11T16:41:22Z</dc:date>
    </item>
    <item>
      <title>Re: Date-Time Formats</title>
      <link>https://community.jmp.com/t5/Discussions/Date-Time-Formats/m-p/265831#M51779</link>
      <description>&lt;P&gt;Here is a little script that should convert the column to a JMP date time value&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;names default to here(1);
dt=current data table();
for each row(
	:date = substr(:date, 1, length(:date)-length(word(-1,:date,"-"))-1);
);

dt:date &amp;lt;&amp;lt; data type(numeric)&amp;lt;&amp;lt;modeling type(continuous);
dt:date &amp;lt;&amp;lt; format("yyyy-mm-ddThh:mm:ss");&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Just replace the values of :Date to whatever your column name is&lt;/P&gt;</description>
      <pubDate>Mon, 11 May 2020 17:16:36 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Date-Time-Formats/m-p/265831#M51779</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-05-11T17:16:36Z</dc:date>
    </item>
  </channel>
</rss>

