<?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: Changing Date Format in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Changing-Date-Format/m-p/31225#M19747</link>
    <description>&lt;P&gt;Here is a formula that works for a character string column called "Date".&amp;nbsp; Just copy this formula to a new column, name the column whatever you want to name it, change the format to whatever date or time format you want, and then run the formula.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;TheDate = Informat(
	Word( 3, :date, " ," ) || Substr( Word( 2, :date, " ," ), 1, 3 ) || Word( 4, :date, " ,:" ) || " " ||
	Word( 6, :date, " ," )
);
If( Word( -1, :date, " " ) == "PM",
	Thedate = thedate + 43200
);
thedate;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 05 Dec 2016 20:38:07 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2016-12-05T20:38:07Z</dc:date>
    <item>
      <title>Changing Date Format</title>
      <link>https://community.jmp.com/t5/Discussions/Changing-Date-Format/m-p/31189#M19734</link>
      <description>&lt;P&gt;I'm trying to import data from an excel file where a column contains dates in a format that looks like "Monday, December 05, 2016, 2016 12:20:01 PM EST"&lt;/P&gt;&lt;P&gt;I want to plot this data in JMP in chronological order. To do so, I believe I need to get the date into numeric continuous format. Does anyone know how to convert the date over? I've seen a couple date conversion in JMP, but non starting from the format that I'm starting with... I don't need the time the to be listed, just the date.&lt;/P&gt;&lt;P&gt;Thanks in advance!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Dec 2016 19:36:16 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Changing-Date-Format/m-p/31189#M19734</guid>
      <dc:creator>kschnarrs</dc:creator>
      <dc:date>2016-12-05T19:36:16Z</dc:date>
    </item>
    <item>
      <title>Re: Changing Date Format</title>
      <link>https://community.jmp.com/t5/Discussions/Changing-Date-Format/m-p/31192#M19737</link>
      <description>&lt;P&gt;I assume that the data is currently character data type in JMP after you get it over from Excel or you wouldn't be asking this question.&lt;/P&gt;
&lt;P&gt;Select the column and then select &lt;STRONG&gt;Cols&lt;/STRONG&gt; &amp;gt; &lt;STRONG&gt;Column Info&lt;/STRONG&gt;. Change the data type to &lt;STRONG&gt;Numeric&lt;/STRONG&gt;. Change the &lt;STRONG&gt;Format&lt;/STRONG&gt; to the one that matches your character string.I think it is the &lt;STRONG&gt;Long Date&lt;/STRONG&gt; format.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Dec 2016 19:53:01 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Changing-Date-Format/m-p/31192#M19737</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2016-12-05T19:53:01Z</dc:date>
    </item>
    <item>
      <title>Re: Changing Date Format</title>
      <link>https://community.jmp.com/t5/Discussions/Changing-Date-Format/m-p/31197#M19742</link>
      <description>&lt;P&gt;When I do that, the output &amp;nbsp;becomes blank because the input format doesn't exactly match any of the input options (dates or times) since the input has the day of the week as well as "AM/PM" and "EST."&lt;/P&gt;</description>
      <pubDate>Mon, 05 Dec 2016 19:54:56 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Changing-Date-Format/m-p/31197#M19742</guid>
      <dc:creator>kschnarrs</dc:creator>
      <dc:date>2016-12-05T19:54:56Z</dc:date>
    </item>
    <item>
      <title>Re: Changing Date Format</title>
      <link>https://community.jmp.com/t5/Discussions/Changing-Date-Format/m-p/31214#M19745</link>
      <description>&lt;P&gt;Sorry about that!&lt;/P&gt;
&lt;P&gt;My next attempt use a column formula also failed but I will post it so someone else does not waste their time.on it.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;t1 = Words( :Charater Date );
t1 = t1[1] || " " || t1[2] || " " || t1[3] || " " || t1[4]
 || " " || t1[6] || " " || t1[7];
As Date( :Charater Date, "Long Date" ); // or Informat()&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The idea was to isolate the words making up the string, concatenate the good ones, and then parse it. I'm afraid that I will have to leave it to someone who is more familiar with date formats and parsing character strings.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Dec 2016 20:27:04 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Changing-Date-Format/m-p/31214#M19745</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2016-12-05T20:27:04Z</dc:date>
    </item>
    <item>
      <title>Re: Changing Date Format</title>
      <link>https://community.jmp.com/t5/Discussions/Changing-Date-Format/m-p/31225#M19747</link>
      <description>&lt;P&gt;Here is a formula that works for a character string column called "Date".&amp;nbsp; Just copy this formula to a new column, name the column whatever you want to name it, change the format to whatever date or time format you want, and then run the formula.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;TheDate = Informat(
	Word( 3, :date, " ," ) || Substr( Word( 2, :date, " ," ), 1, 3 ) || Word( 4, :date, " ,:" ) || " " ||
	Word( 6, :date, " ," )
);
If( Word( -1, :date, " " ) == "PM",
	Thedate = thedate + 43200
);
thedate;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 05 Dec 2016 20:38:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Changing-Date-Format/m-p/31225#M19747</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2016-12-05T20:38:07Z</dc:date>
    </item>
    <item>
      <title>Re: Changing Date Format</title>
      <link>https://community.jmp.com/t5/Discussions/Changing-Date-Format/m-p/31239#M19751</link>
      <description>&lt;P&gt;I can't get that to work. I'm not sure what I'm doing wrong (I don't have a ton of experience with coding). Do you mean for me to create a separate script and paste that in? Or to go to Cols -&amp;gt; New Column -&amp;gt; Formula and paste it as a formula? I tried both but coudln't get it to work right...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The column with the dates is titled "Date Acquired" so I replaced that everywhere you had 'date,' leaving everything else the same and tried to create a New Column just titled "Date" for it to go under..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Dec 2016 21:38:23 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Changing-Date-Format/m-p/31239#M19751</guid>
      <dc:creator>kschnarrs</dc:creator>
      <dc:date>2016-12-05T21:38:23Z</dc:date>
    </item>
    <item>
      <title>Re: Changing Date Format</title>
      <link>https://community.jmp.com/t5/Discussions/Changing-Date-Format/m-p/31240#M19752</link>
      <description>The code I specified is to be used as a formula for a new column.&lt;BR /&gt;All that is being done in the formula, is the building of a string that should look like,&lt;BR /&gt;ddMonyyyy hh:mm:ss &lt;BR /&gt;in structure.  The Word function returns the 1st, 2nd, etc. word, using the delimiters specified as the word separators.  In the example, I am using both a blank and a comma as the separators to look for.  So you should be able to verify that what the original column looks like and to map it to what the formula is creating.  you could paste in a screen dump of your data table, that would help.</description>
      <pubDate>Mon, 05 Dec 2016 22:00:24 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Changing-Date-Format/m-p/31240#M19752</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2016-12-05T22:00:24Z</dc:date>
    </item>
    <item>
      <title>Re: Changing Date Format</title>
      <link>https://community.jmp.com/t5/Discussions/Changing-Date-Format/m-p/31241#M19753</link>
      <description>I got it - I think I had forgotten to set the output format correctly so that's why I was having trouble. Thanks!</description>
      <pubDate>Mon, 05 Dec 2016 22:10:41 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Changing-Date-Format/m-p/31241#M19753</guid>
      <dc:creator>kschnarrs</dc:creator>
      <dc:date>2016-12-05T22:10:41Z</dc:date>
    </item>
    <item>
      <title>Re: Changing Date Format</title>
      <link>https://community.jmp.com/t5/Discussions/Changing-Date-Format/m-p/33060#M19754</link>
      <description>&lt;P&gt;I used to have the same problem.&amp;nbsp; The easiest solution for me was to change the Excel date column from "General" (or whatever) to "Short Date".&amp;nbsp; Then copy/paste or import intoJMP.&amp;nbsp; Works every time!&lt;/P&gt;</description>
      <pubDate>Tue, 06 Dec 2016 14:25:02 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Changing-Date-Format/m-p/33060#M19754</guid>
      <dc:creator>Steven_Moore</dc:creator>
      <dc:date>2016-12-06T14:25:02Z</dc:date>
    </item>
    <item>
      <title>Re: Changing Date Format</title>
      <link>https://community.jmp.com/t5/Discussions/Changing-Date-Format/m-p/33064#M19757</link>
      <description>&lt;P&gt;I'm having trouble doing that - since the input date format doesn't match something that excel recognizes, it won't convert it over to short date.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Dec 2016 15:11:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Changing-Date-Format/m-p/33064#M19757</guid>
      <dc:creator>kschnarrs</dc:creator>
      <dc:date>2016-12-06T15:11:03Z</dc:date>
    </item>
  </channel>
</rss>

