<?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: Change Date Time format in JSL not working (JMP15) in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Change-Date-Time-format-in-JSL-not-working-JMP15/m-p/539763#M76060</link>
    <description>&lt;P&gt;My guess is that the column is treated on such a way, that it is first converted to d/m/yyyy format and then to m/d/yyyy and this will cause missing values (nightmare for me to test as I use different date-time format and JMP doesn't like me testing with different ones).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, JSL I get from JMP is different than the one you are using (see that everything is inside Data Type() besides setting Modeling Type.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Data Table("Untitled 3"):Time2 &amp;lt;&amp;lt; Data Type(
	Numeric,
	Format("d/m/y h:m:s", 22, 0),
	Input Format("d/m/y h:m:s", 0)
) &amp;lt;&amp;lt; Set Modeling Type("Continuous");&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Maybe this could be causing some issues as format is being set before input format in your script (not sure if it behaves this way)?&lt;/P&gt;</description>
    <pubDate>Fri, 02 Sep 2022 06:27:41 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2022-09-02T06:27:41Z</dc:date>
    <item>
      <title>Change Date Time format in JSL not working (JMP15)</title>
      <link>https://community.jmp.com/t5/Discussions/Change-Date-Time-format-in-JSL-not-working-JMP15/m-p/539710#M76055</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Recently, I'm having an issue in converting the date time format from character to numeric date.&lt;/P&gt;&lt;P&gt;I want the character date set to numeric d/m/y h:m:s.&lt;/P&gt;&lt;P&gt;I've converted it manually &amp;amp; copy the script from table.&lt;/P&gt;&lt;P&gt;But when I run the script, my date return to m/d/y h:m:s and there's missing value.&lt;/P&gt;&lt;P&gt;I can't figure out why it's not working.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using JMP 15&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;:Wirebond End Date
&amp;lt;&amp;lt; Data Type( Numeric)
&amp;lt;&amp;lt; Modeling Type(continuous)
&amp;lt;&amp;lt; Format( "d/m/y h:m:s", 22, 0 );
&amp;lt;&amp;lt; Input Format( "d/m/y h:m:s", 0 );&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Picture1.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/45137i1D7E9F8481545E1D/image-size/large?v=v2&amp;amp;px=999" role="button" title="Picture1.png" alt="Picture1.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 17:09:01 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Change-Date-Time-format-in-JSL-not-working-JMP15/m-p/539710#M76055</guid>
      <dc:creator>WebDesignesCrow</dc:creator>
      <dc:date>2023-06-09T17:09:01Z</dc:date>
    </item>
    <item>
      <title>Re: Change Date Time format in JSL not working (JMP15)</title>
      <link>https://community.jmp.com/t5/Discussions/Change-Date-Time-format-in-JSL-not-working-JMP15/m-p/539731#M76057</link>
      <description>&lt;P&gt;In your JSL, you have a ";" after the &amp;lt;&amp;lt; Format(.....) that should not be there&lt;/P&gt;</description>
      <pubDate>Fri, 02 Sep 2022 04:38:19 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Change-Date-Time-format-in-JSL-not-working-JMP15/m-p/539731#M76057</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2022-09-02T04:38:19Z</dc:date>
    </item>
    <item>
      <title>Re: Change Date Time format in JSL not working (JMP15)</title>
      <link>https://community.jmp.com/t5/Discussions/Change-Date-Time-format-in-JSL-not-working-JMP15/m-p/539756#M76059</link>
      <description>&lt;P&gt;I've removed the ";".&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;:Wirebond End Date
&amp;lt;&amp;lt; Data Type( Numeric) 
&amp;lt;&amp;lt; Modeling Type(continuous) 
&amp;lt;&amp;lt; Format( "d/m/y h:m:s", 22, 0 ) 
&amp;lt;&amp;lt; Input Format( "d/m/y h:m:s", 0 );&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Still same result. Could it be some bug? :(.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Sep 2022 05:47:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Change-Date-Time-format-in-JSL-not-working-JMP15/m-p/539756#M76059</guid>
      <dc:creator>WebDesignesCrow</dc:creator>
      <dc:date>2022-09-02T05:47:03Z</dc:date>
    </item>
    <item>
      <title>Re: Change Date Time format in JSL not working (JMP15)</title>
      <link>https://community.jmp.com/t5/Discussions/Change-Date-Time-format-in-JSL-not-working-JMP15/m-p/539763#M76060</link>
      <description>&lt;P&gt;My guess is that the column is treated on such a way, that it is first converted to d/m/yyyy format and then to m/d/yyyy and this will cause missing values (nightmare for me to test as I use different date-time format and JMP doesn't like me testing with different ones).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, JSL I get from JMP is different than the one you are using (see that everything is inside Data Type() besides setting Modeling Type.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Data Table("Untitled 3"):Time2 &amp;lt;&amp;lt; Data Type(
	Numeric,
	Format("d/m/y h:m:s", 22, 0),
	Input Format("d/m/y h:m:s", 0)
) &amp;lt;&amp;lt; Set Modeling Type("Continuous");&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Maybe this could be causing some issues as format is being set before input format in your script (not sure if it behaves this way)?&lt;/P&gt;</description>
      <pubDate>Fri, 02 Sep 2022 06:27:41 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Change-Date-Time-format-in-JSL-not-working-JMP15/m-p/539763#M76060</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2022-09-02T06:27:41Z</dc:date>
    </item>
    <item>
      <title>Re: Change Date Time format in JSL not working (JMP15)</title>
      <link>https://community.jmp.com/t5/Discussions/Change-Date-Time-format-in-JSL-not-working-JMP15/m-p/539769#M76062</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/14366"&gt;@jthi&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think you are right.&lt;/P&gt;&lt;P&gt;Seems date input format in d/m/y (character) can't convert to d/m/y (numeric)&lt;/P&gt;&lt;P&gt;When the input format data is in m/d/y, the character column can be converted to numeric using JSL with flying colours.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've asked our IT team to change my automated data input format to m/d/y instead of d/m/y since I need to fix the issue urgently.&lt;/P&gt;&lt;P&gt;JMP15 - JSL can't convert d/m/y (character) to d/m/y (numeric) but it can be done manually at data table.&lt;/P&gt;&lt;P&gt;Weird though.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks anyway! At least I know I'm not the only one cracking heads for different date time format issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Sep 2022 07:20:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Change-Date-Time-format-in-JSL-not-working-JMP15/m-p/539769#M76062</guid>
      <dc:creator>WebDesignesCrow</dc:creator>
      <dc:date>2022-09-02T07:20:25Z</dc:date>
    </item>
    <item>
      <title>Re: Change Date Time format in JSL not working (JMP15)</title>
      <link>https://community.jmp.com/t5/Discussions/Change-Date-Time-format-in-JSL-not-working-JMP15/m-p/539810#M76064</link>
      <description>&lt;P&gt;The fool proof way is to create an extra column with formula (replacing :time with the correct source column name):&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;in format(:time, "Format Pattern", "&amp;lt;DD&amp;gt;&amp;lt;/&amp;gt;&amp;lt;MM&amp;gt;&amp;lt;/&amp;gt;&amp;lt;YYYY&amp;gt; &amp;lt;hh24&amp;gt;&amp;lt;:&amp;gt;&amp;lt;mm&amp;gt;:&amp;lt;ss&amp;gt;")&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;and then set that new column to display in whatever format you prefer:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;New Column( "Fixed time format",
	Numeric,
	"Continuous",
	Format( "yyyy-mm-ddThh:mm:ss", 19, 0 ), //Change to whatever output format you like
	Input Format( "yyyy-mm-ddThh:mm:ss", 0 ),
	Formula(
		Informat(
			:Time,
			"Format Pattern",
			"&amp;lt;DD&amp;gt;&amp;lt;/&amp;gt;&amp;lt;MM&amp;gt;&amp;lt;/&amp;gt;&amp;lt;YYYY&amp;gt; &amp;lt;hh24&amp;gt;&amp;lt;:&amp;gt;&amp;lt;mm&amp;gt;:&amp;lt;ss&amp;gt;"
		)
	)
)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;If you then remove the formula, you can deleter the orginial column afterwards:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;:Fixed time format &amp;lt;&amp;lt; Delete Formula;
current data table() &amp;lt;&amp;lt; Delete Columns(:time);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Sep 2022 12:30:08 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Change-Date-Time-format-in-JSL-not-working-JMP15/m-p/539810#M76064</guid>
      <dc:creator>pauldeen</dc:creator>
      <dc:date>2022-09-02T12:30:08Z</dc:date>
    </item>
  </channel>
</rss>

