<?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 How to convert text format Numbers to yyyymmdd hh:mm format? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-convert-text-format-Numbers-to-yyyymmdd-hh-mm-format/m-p/84776#M37949</link>
    <description>&lt;P&gt;Hello, everyone!&lt;/P&gt;&lt;P&gt;How to use JSL or formula to convert the text of column 1 into the time format of column 2.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2018-11-30_22-27-38.png" style="width: 779px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/14655i41B6AFADC1D54FDD/image-size/large?v=v2&amp;amp;px=999" role="button" title="2018-11-30_22-27-38.png" alt="2018-11-30_22-27-38.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 30 Nov 2018 14:35:10 GMT</pubDate>
    <dc:creator>lwx228</dc:creator>
    <dc:date>2018-11-30T14:35:10Z</dc:date>
    <item>
      <title>How to convert text format Numbers to yyyymmdd hh:mm format?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-convert-text-format-Numbers-to-yyyymmdd-hh-mm-format/m-p/84776#M37949</link>
      <description>&lt;P&gt;Hello, everyone!&lt;/P&gt;&lt;P&gt;How to use JSL or formula to convert the text of column 1 into the time format of column 2.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2018-11-30_22-27-38.png" style="width: 779px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/14655i41B6AFADC1D54FDD/image-size/large?v=v2&amp;amp;px=999" role="button" title="2018-11-30_22-27-38.png" alt="2018-11-30_22-27-38.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Nov 2018 14:35:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-convert-text-format-Numbers-to-yyyymmdd-hh-mm-format/m-p/84776#M37949</guid>
      <dc:creator>lwx228</dc:creator>
      <dc:date>2018-11-30T14:35:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert text format Numbers to yyyymmdd hh:mm format?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-convert-text-format-Numbers-to-yyyymmdd-hh-mm-format/m-p/84777#M37950</link>
      <description>The column names in the diagram should be&lt;BR /&gt;yyyymmdd hh:mm</description>
      <pubDate>Fri, 30 Nov 2018 14:37:04 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-convert-text-format-Numbers-to-yyyymmdd-hh-mm-format/m-p/84777#M37950</guid>
      <dc:creator>lwx228</dc:creator>
      <dc:date>2018-11-30T14:37:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert text format Numbers to yyyymmdd hh:mm format?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-convert-text-format-Numbers-to-yyyymmdd-hh-mm-format/m-p/84780#M37952</link>
      <description>&lt;P&gt;Here is the formula for the conversion&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Date DMY(
	Num( Substr( :date, 7, 2 ) ),
	Num( Substr( :date, 5, 2 ) ),
	Num( Substr( :date, 1, 4 ) ) ) + 
	60 * 60 * Num( Word( 2, :date, " :" ) ) + 
	60 * Num( Word( -1, :date, " :" ) )&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 30 Nov 2018 15:25:09 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-convert-text-format-Numbers-to-yyyymmdd-hh-mm-format/m-p/84780#M37952</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-11-30T15:25:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert text format Numbers to yyyymmdd hh:mm format?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-convert-text-format-Numbers-to-yyyymmdd-hh-mm-format/m-p/84799#M37959</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt;'s formula will work but there's a slightly simpler formula that will work also.&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="JMPScreenSnapz300.png" style="width: 726px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/14661i7EBCFD2ABAB3F5B8/image-size/large?v=v2&amp;amp;px=999" role="button" title="JMPScreenSnapz300.png" alt="JMPScreenSnapz300.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;This one uses &lt;A href="https://www.jmp.com/support/help/14/date-time-functions.shtml#123225" target="_self"&gt;Informat()&lt;/A&gt; to convert the date and time values.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Informat( Word( 1, :Column 1 ) ) +Informat( Word( 2, :Column 1 ), "h:m" )&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Nov 2018 22:09:41 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-convert-text-format-Numbers-to-yyyymmdd-hh-mm-format/m-p/84799#M37959</guid>
      <dc:creator>Jeff_Perkinson</dc:creator>
      <dc:date>2018-11-30T22:09:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert text format Numbers to yyyymmdd hh:mm format?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-convert-text-format-Numbers-to-yyyymmdd-hh-mm-format/m-p/84805#M37964</link>
      <description>Thanks!&lt;BR /&gt;Jim Let me know the principle, Jeff_Perkinson let me learn JMP function.</description>
      <pubDate>Sat, 01 Dec 2018 01:25:28 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-convert-text-format-Numbers-to-yyyymmdd-hh-mm-format/m-p/84805#M37964</guid>
      <dc:creator>lwx228</dc:creator>
      <dc:date>2018-12-01T01:25:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert text format Numbers to yyyymmdd hh:mm format?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-convert-text-format-Numbers-to-yyyymmdd-hh-mm-format/m-p/84865#M37990</link>
      <description>&lt;P&gt;How can JMP get the text of year, month and day from the date format?&lt;BR /&gt;Sorry to bother you again,Thank you!&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="2018-12-04_22-10-39.png" style="width: 312px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/14680iE047F7CDBE905FDD/image-size/large?v=v2&amp;amp;px=999" role="button" title="2018-12-04_22-10-39.png" alt="2018-12-04_22-10-39.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Dec 2018 14:11:33 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-convert-text-format-Numbers-to-yyyymmdd-hh-mm-format/m-p/84865#M37990</guid>
      <dc:creator>lwx228</dc:creator>
      <dc:date>2018-12-03T14:11:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert text format Numbers to yyyymmdd hh:mm format?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-convert-text-format-Numbers-to-yyyymmdd-hh-mm-format/m-p/84875#M37992</link>
      <description>Your question is vague.  Please give an example of what the input values looks like, and what you want the output value to be...….</description>
      <pubDate>Mon, 03 Dec 2018 15:06:38 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-convert-text-format-Numbers-to-yyyymmdd-hh-mm-format/m-p/84875#M37992</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-12-03T15:06:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert text format Numbers to yyyymmdd hh:mm format?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-convert-text-format-Numbers-to-yyyymmdd-hh-mm-format/m-p/84883#M37997</link>
      <description>&lt;P&gt;The &lt;A href="https://www.jmp.com/support/help/14/date-and-time-functions.shtml#2531887" target="_self"&gt;Format()&lt;/A&gt; function is used to convert a &lt;A href="https://community.jmp.com/t5/JMPer-Cable/Using-dates-times-datetimes-and-durations-in-JMP/ba-p/68689" target="_self"&gt;JMP date, time or datetime value&lt;/A&gt; to a text string.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;x=informat("20000214");

show(format(x, "m/d/y"));

show(format(x, "d/m/y"));

show(format(x, "Date Long"));

show(format(x, "Monddyyyy"));
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Results in this in the log:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Format(x, "m/d/y") = "02/14/2000";
Format(x, "d/m/y") = "14/02/2000";
Format(x, "Date Long") = "Monday, February 14, 2000";
Format(x, "Monddyyyy") = "Feb142000";&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Dec 2018 18:22:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-convert-text-format-Numbers-to-yyyymmdd-hh-mm-format/m-p/84883#M37997</guid>
      <dc:creator>Jeff_Perkinson</dc:creator>
      <dc:date>2018-12-03T18:22:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert text format Numbers to yyyymmdd hh:mm format?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-convert-text-format-Numbers-to-yyyymmdd-hh-mm-format/m-p/84902#M38007</link>
      <description>&lt;P&gt;That's the style,Thanks!&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The effect is the same:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;format(x, "y/m/d")&amp;nbsp; ————&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;format(x, "yyyyymmdd")&lt;/P&gt;</description>
      <pubDate>Mon, 03 Dec 2018 23:55:36 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-convert-text-format-Numbers-to-yyyymmdd-hh-mm-format/m-p/84902#M38007</guid>
      <dc:creator>lwx228</dc:creator>
      <dc:date>2018-12-03T23:55:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert text format Numbers to yyyymmdd hh:mm format?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-convert-text-format-Numbers-to-yyyymmdd-hh-mm-format/m-p/376832#M62671</link>
      <description>I have one data with one varieble that can inculde diferent types of dates.&lt;BR /&gt;Exmple:&lt;BR /&gt;17 January 2015&lt;BR /&gt;Or&lt;BR /&gt;12-6/2013&lt;BR /&gt;Or&lt;BR /&gt;20.Jan1997&lt;BR /&gt;Or&lt;BR /&gt;March 26 2001&lt;BR /&gt;Or&lt;BR /&gt;12-23-1991&lt;BR /&gt;They will changed in code.&lt;BR /&gt;So, I need to have date in YYYY-MM-DD format in my second variable.&lt;BR /&gt;&lt;BR /&gt;First var is Mdfc&lt;BR /&gt;Second Var is Fdtc&lt;BR /&gt;&lt;BR /&gt;Can you help to have the solution?&lt;BR /&gt;Thank you !</description>
      <pubDate>Wed, 14 Apr 2021 18:23:36 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-convert-text-format-Numbers-to-yyyymmdd-hh-mm-format/m-p/376832#M62671</guid>
      <dc:creator>Alina199121</dc:creator>
      <dc:date>2021-04-14T18:23:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert text format Numbers to yyyymmdd hh:mm format?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-convert-text-format-Numbers-to-yyyymmdd-hh-mm-format/m-p/376895#M62677</link>
      <description>&lt;P&gt;Here is a format that will work with the examples you provided.&amp;nbsp; It will have to be tweaked for other combinations of values and structure.&amp;nbsp; Attached is a sample data table with the formula applied&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;If( Row() == 1,
	moList = {"January", "February", "March", "April", "May", "June", "July",
	"August", "September", "October", "November", "December"};
	moAbvList = {"Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep",
	"Oct", "Nov", "Dec"};
);
If(
	Word( 3, :Mdfc, " /-" ) == "",
		theDay = Num( Substr( :Mdfc, 1, 2 ) );
		theMonth = Contains( moAbvList, Substr( :Mdfc, 4, 3 ) );
		theYear = Num( Word( -1, :Mdfc, "abcdefghijklmnopqrstuvwxyz" ) );
		Show( theday, themonth, theyear, Substr( :Mdfc, 4, 3 ) );,
	Is Missing( Num( Word( 2, :Mdfc, " /-" ) ) ) == 1,
		theDay = Num( Word( 1, :Mdfc, " /-" ) );
		theMonth = Contains( moList, Word( 2, :Mdfc, " /-" ) );
		theYear = Num( Word( 3, :Mdfc, " /-" ) );,
	Is Missing( Num( Word( 1, :Mdfc, " /-" ) ) ) == 1,
		theDay = Num( Word( 2, :Mdfc, " /-" ) );
		theMonth = Contains( moList, Word( 1, :Mdfc, " /-" ) );
		theYear = Num( Word( 3, :Mdfc, " /-" ) );,
	theDay = Num( Word( 2, :Mdfc, " /-" ) );
	theMonth = Num( Word( 1, :Mdfc, " /-" ) );
	theYear = Num( Word( 3, :Mdfc, " /-" ) );
);
Date MDY( theMonth, theDay, theYear );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 14 Apr 2021 22:04:05 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-convert-text-format-Numbers-to-yyyymmdd-hh-mm-format/m-p/376895#M62677</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2021-04-14T22:04:05Z</dc:date>
    </item>
  </channel>
</rss>

