<?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 format problem script in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Date-time-format-problem-script/m-p/348641#M59961</link>
    <description>Dear Hadley and sorry Jim.&lt;BR /&gt;I took the first answer from Hadley and tried it quickly.&lt;BR /&gt;Yes - problem is solved for the moment. I just double-checked it in a seperate script copying - pasting the line from Hadley.&lt;BR /&gt;My Time is now numeric &amp;amp; continuous and I can continue with the importing of data and analytical set-up.&lt;BR /&gt;&lt;BR /&gt;Thank you both very much.&lt;BR /&gt;Ole</description>
    <pubDate>Thu, 14 Jan 2021 15:36:27 GMT</pubDate>
    <dc:creator>Ole_Luehn</dc:creator>
    <dc:date>2021-01-14T15:36:27Z</dc:date>
    <item>
      <title>Date-time format problem script</title>
      <link>https://community.jmp.com/t5/Discussions/Date-time-format-problem-script/m-p/348561#M59950</link>
      <description>&lt;P&gt;Hi there.&amp;nbsp;&lt;BR /&gt;I have a kind of little problem with my data-format.&lt;/P&gt;
&lt;P&gt;When importing data via a REST-API (https) link, I get the data-table and want to format the time from character and nominal to numeric and continuous.&lt;/P&gt;
&lt;P&gt;As I got a new link, the data-format changed.&lt;/P&gt;
&lt;P&gt;The problem is I did try the presettings in the colomn info, but was not successful.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Before, depending of course on the data-format, the following worked in my script - where all kinds of plots and SPC is done afterwords - with right time format.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt:TSstartR800 &amp;lt;&amp;lt; Set Data Type( Numeric ) &amp;lt;&amp;lt; Modeling Type( continuous ) &amp;lt;&amp;lt; Format( "Locale Date Time h:m:s" );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;//here I need to place and exchange "Local Date Time h:m:s" by something that works on the format in the colomns in the attached data-table...but how?&lt;BR /&gt;Can you double-check the table with the data-format?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt;&amp;nbsp;--&amp;gt; seems that you know or I guess you might be able to help.&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/1184"&gt;@eromeu&lt;/a&gt;&amp;nbsp; --&amp;gt; Hi Emannuel. I try the forum --&amp;gt; if this works I extended the work from Bernd and me a bit.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best wishes.&lt;/P&gt;
&lt;P&gt;Ole&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2023 23:24:54 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Date-time-format-problem-script/m-p/348561#M59950</guid>
      <dc:creator>Ole_Luehn</dc:creator>
      <dc:date>2023-06-10T23:24:54Z</dc:date>
    </item>
    <item>
      <title>Re: Date-time format problem script</title>
      <link>https://community.jmp.com/t5/Discussions/Date-time-format-problem-script/m-p/348599#M59951</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm not sure if there is a better way to do this, but I added a line of script that removes the "+0000" at the end of each date string, and then did the date time conversion (see below).&amp;nbsp; Does this do what you're after?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;for each row(:TSstartR800= munger(:TSstartR800, 1, "+0000",""));
:TSstartR800&amp;lt;&amp;lt; Set Data Type( Numeric ) &amp;lt;&amp;lt; Modeling Type( continuous ) &amp;lt;&amp;lt; Format( "Locale Date Time h:m:s" );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 14 Jan 2021 13:56:24 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Date-time-format-problem-script/m-p/348599#M59951</guid>
      <dc:creator>HadleyMyers</dc:creator>
      <dc:date>2021-01-14T13:56:24Z</dc:date>
    </item>
    <item>
      <title>Re: Date-time format problem script</title>
      <link>https://community.jmp.com/t5/Discussions/Date-time-format-problem-script/m-p/348600#M59952</link>
      <description>&lt;P&gt;If you strip off the + and the values after it, the yyyy-mm-ddThh:mm:ss format will handle the conversion&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;For Each Row( :TSstartR800 = Word( 1, :TSstartR800, "+" ) );
dt:TSstartR800 &amp;lt;&amp;lt; Set Data Type( Numeric ) &amp;lt;&amp;lt; Modeling Type( continuous ) &amp;lt;&amp;lt;
inFormat( "yyyy-mm-ddThh:mm:ss" )&amp;lt;&amp;lt; Format( "Locale Date Time h:m:s" );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 14 Jan 2021 14:05:57 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Date-time-format-problem-script/m-p/348600#M59952</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2021-01-14T14:05:57Z</dc:date>
    </item>
    <item>
      <title>Re: Date-time format problem script</title>
      <link>https://community.jmp.com/t5/Discussions/Date-time-format-problem-script/m-p/348641#M59961</link>
      <description>Dear Hadley and sorry Jim.&lt;BR /&gt;I took the first answer from Hadley and tried it quickly.&lt;BR /&gt;Yes - problem is solved for the moment. I just double-checked it in a seperate script copying - pasting the line from Hadley.&lt;BR /&gt;My Time is now numeric &amp;amp; continuous and I can continue with the importing of data and analytical set-up.&lt;BR /&gt;&lt;BR /&gt;Thank you both very much.&lt;BR /&gt;Ole</description>
      <pubDate>Thu, 14 Jan 2021 15:36:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Date-time-format-problem-script/m-p/348641#M59961</guid>
      <dc:creator>Ole_Luehn</dc:creator>
      <dc:date>2021-01-14T15:36:27Z</dc:date>
    </item>
  </channel>
</rss>

